#F5DC62#F5DC62

#F5DC62 is a very light, vivid yellow. Relative luminance 0.715; OKLCH L 89.2% C 0.143 H 97.8°. Best body text is #000000 at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#F5DC62
RGBrgb(245, 220, 98)
HSLhsl(50, 88%, 67%)
HSVhsv(50, 60%, 96%)
CMYKcmyk(0%, 10.2%, 60%, 3.9%)
CIE-LABlab(87.72, -5.52, 61.64)
CIE-LCHlch(87.72, 61.89, 95.12°)
OKLaboklab(89.23% -0.0194 0.1418)
OKLCHoklch(89.23% 0.143 97.8)
XYZxyz(65.4567, 71.4836, 21.9028)
Luminance0.7148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC62 #627BF5
analogous
#F59362 #F5DC62 #C4F562
triadic
#F5DC62 #62F5DC #DC62F5
tetradic
#F5DC62 #62F593 #627BF5 #F562C4
square
#F5DC62 #62F593 #627BF5 #F562C4
split-complementary
#F5DC62 #62C4F5 #9362F5
monochromatic
#CFAE0D #F1CF28 #F5DC62 #F9E99C #FCF6D5

Accessibility & contrast

On white

1.37
#F5DC62 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.30
#F5DC62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC62
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC62#FFFFFF#000000##000000
##F5DC621.001.3715.3015.30
#FFFFFF1.371.0021.0021.00
#00000015.3021.001.001.00
##00000015.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D755
Deuteranopia (green-blind)
#F6E068
Tritanopia (blue-blind)
#FFCDC1
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f5dc62;
/* rgb */ color: rgb(245, 220, 98);
/* oklch */ color: oklch(89.2% 0.143 97.8);
Tailwind
colors: {
  custom: {
    50: '#fce693',
    500: '#f5dc62',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc62;
$custom-light: #fce693;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc62",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 98
  },
  "hsl": {
    "h": 49.796,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.89227,
    "c": 0.14314,
    "h": 97.8
  },
  "luminance": 0.71481
}

Semantic roles & 50–950 ramp

primary
#F5DC62
secondary
#304BCB
accent
#28E501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5DC62

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F5DC62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva