#F0D662#F0D662

#F0D662 is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.6% C 0.138 H 96.8°. Best body text is #000000 at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#F0D662
RGBrgb(240, 214, 98)
HSLhsl(49, 83%, 66%)
HSVhsv(49, 59%, 94%)
CMYKcmyk(0%, 10.8%, 59.2%, 5.9%)
CIE-LABlab(85.76, -4.54, 59.33)
CIE-LCHlch(85.76, 59.50, 94.37°)
OKLaboklab(87.57% -0.0163 0.137)
OKLCHoklch(87.57% 0.138 96.8)
XYZxyz(62.1889, 67.5031, 21.3066)
Luminance0.6750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D662 #627CF0
analogous
#F08F62 #F0D662 #C3F062
triadic
#F0D662 #62F0D6 #D662F0
tetradic
#F0D662 #62F08F #627CF0 #F062C3
square
#F0D662 #62F08F #627CF0 #F062C3
split-complementary
#F0D662 #62C3F0 #8F62F0
monochromatic
#C5A413 #EBC72A #F0D662 #F5E59A #FBF3D2

Accessibility & contrast

On white

1.45
#F0D662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.50
#F0D662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D662
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D662#FFFFFF#000000##000000
##F0D6621.001.4514.5014.50
#FFFFFF1.451.0021.0021.00
#00000014.5021.001.001.00
##00000014.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D156
Deuteranopia (green-blind)
#F0DA67
Tritanopia (blue-blind)
#FFC8BD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f0d662;
/* rgb */ color: rgb(240, 214, 98);
/* oklch */ color: oklch(87.6% 0.138 96.8);
Tailwind
colors: {
  custom: {
    50: '#f8e292',
    500: '#f0d662',
    950: '#000000',
  },
}
SCSS
$custom: #f0d662;
$custom-light: #f8e292;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d662",
  "rgb": {
    "r": 240,
    "g": 214,
    "b": 98
  },
  "hsl": {
    "h": 49.014,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.8757,
    "c": 0.13796,
    "h": 96.8
  },
  "luminance": 0.675
}

Semantic roles & 50–950 ramp

primary
#F0D662
secondary
#344EC2
accent
#2EDF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D662

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

Preview Lab → · Contrast checker → · Palette generator →

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