#F0D462#F0D462

#F0D462 is a very light, vivid yellow. Relative luminance 0.665; OKLCH L 87.2% C 0.136 H 95.6°. Best body text is #000000 at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#F0D462
RGBrgb(240, 212, 98)
HSLhsl(48, 83%, 66%)
HSVhsv(48, 59%, 94%)
CMYKcmyk(0%, 11.7%, 59.2%, 5.9%)
CIE-LABlab(85.25, -3.52, 58.76)
CIE-LCHlch(85.25, 58.87, 93.43°)
OKLaboklab(87.17% -0.0133 0.1358)
OKLCHoklch(87.17% 0.136 95.6)
XYZxyz(61.6858, 66.4970, 21.1389)
Luminance0.6649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D462 #627EF0
analogous
#F08D62 #F0D462 #C5F062
triadic
#F0D462 #62F0D4 #D462F0
tetradic
#F0D462 #62F08D #627EF0 #F062C5
square
#F0D462 #62F08D #627EF0 #F062C5
split-complementary
#F0D462 #62C5F0 #8D62F0
monochromatic
#C5A213 #EBC52A #F0D462 #F5E39A #FBF3D2

Accessibility & contrast

On white

1.47
#F0D462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.30
#F0D462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D462
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D462#FFFFFF#000000##000000
##F0D4621.001.4714.3014.30
#FFFFFF1.471.0021.0021.00
#00000014.3021.001.001.00
##00000014.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D056
Deuteranopia (green-blind)
#EED967
Tritanopia (blue-blind)
#FFC6BB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d462;
/* rgb */ color: rgb(240, 212, 98);
/* oklch */ color: oklch(87.2% 0.136 95.6);
Tailwind
colors: {
  custom: {
    50: '#f8e092',
    500: '#f0d462',
    950: '#000000',
  },
}
SCSS
$custom: #f0d462;
$custom-light: #f8e092;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d462",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 98
  },
  "hsl": {
    "h": 48.169,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.87168,
    "c": 0.13643,
    "h": 95.6
  },
  "luminance": 0.66494
}

Semantic roles & 50–950 ramp

primary
#F0D462
secondary
#3450C2
accent
#31DF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D462

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

Preview Lab → · Contrast checker → · Palette generator →

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