The present invention provides a compound having an excellent inhibitory action on melanin production and being useful as a whitening agent, and a skin external preparation containing the compound. The whitening agent of the present invention comprises, as an active ingredient, a heterocyclic compound represented by formula (1) or a pharmacologically acceptable salt thereof: wherein A is C 1-6 alkyl, C 5-6 cycloalkyl, benzyl, benzylcarbonyl, benzoyl, phenyl, pyridyl or pyrimidyl; Ra is H, C 1-6 alkyl, or C 2-6 alkenyl; " - - - " represents a single bond or a double bond whereinn = 1 or 2; Y is S or O; and R 3 and R 4 are each independently H, C 1-6 alkyl, hydroxy-C 1-6 alkyl, C 2-7 acyl, phenyl, pyridyl, pyrimidyl, etc.;with the proviso that at least one R 3 is a group other than C 1-3 alkyl in the case where: the hetero ring containing Y is a thiazoline ring; R 4 = Ra = H; X 1 = X 2 = CH; and either p = 0 or R 5 = C 1-6 alkyl.본 발명은 우수한 멜라닌 생성 억제 작용을 가지며 미백제로서 유용한 화합물, 및 이를 배합한 피부 외용제를 제공하는 것으로서, 본 발명에 따른 미백제는 하기 화학식 1로 표시되는 화합물 또는 이의 약리학적으로 허용되는 염을 유효 성분으로 하는 것을 특징으로 한다.(화학식 1)(상기 화학식에서,A는 C1-6 알킬, C5-6 시클로알킬, 벤질, 벤질카르보닐, 벤조일, 페닐, 피리딜 또는 피리미딜;Ra는 H, C1-6 알킬 또는 C2-6 알케닐;는 단일결합 또는 이중결합이고 n=1 또는 2;Y는 S 또는 O;R3, R4는 H, C1-6 알킬, 히드록시 C1-6 알킬, C2-7 아실, 페닐, 피리딜 또는 피리미딜 등;단, Y를 포함하는 헤테로 고리가 티아졸린 고리이고, R4=Ra=H, X1=X2=CH이고, 또한 p=0 또는 R5가 C1-6 알킬인 경우에는 적어도 하나의 R3는 C1-3 알킬 이외의 기)