#F0E462#F0E462

#F0E462 is a very light, vivid yellow. Relative luminance 0.749; OKLCH L 90.4% C 0.150 H 104.0°. Best body text is #000000 at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#F0E462
RGBrgb(240, 228, 98)
HSLhsl(55, 83%, 66%)
HSVhsv(55, 59%, 94%)
CMYKcmyk(0%, 5%, 59.2%, 5.9%)
CIE-LABlab(89.34, -11.56, 63.32)
CIE-LCHlch(89.34, 64.37, 100.35°)
OKLaboklab(90.42% -0.0364 0.1455)
OKLCHoklch(90.42% 0.15 104)
XYZxyz(65.8855, 74.8963, 22.5388)
Luminance0.7489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E462 #626EF0
analogous
#F09D62 #F0E462 #B5F062
triadic
#F0E462 #62F0E4 #E462F0
tetradic
#F0E462 #62F09D #626EF0 #F062B5
square
#F0E462 #62F09D #626EF0 #F062B5
split-complementary
#F0E462 #62B5F0 #9D62F0
monochromatic
#C5B613 #EBDA2A #F0E462 #F5EE9A #FBF7D2

Accessibility & contrast

On white

1.31
#F0E462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.98
#F0E462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E462
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E462#FFFFFF#000000##000000
##F0E4621.001.3115.9815.98
#FFFFFF1.311.0021.0021.00
#00000015.9821.001.001.00
##00000015.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DD54
Deuteranopia (green-blind)
#FAE369
Tritanopia (blue-blind)
#FFD6C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f0e462;
/* rgb */ color: rgb(240, 228, 98);
/* oklch */ color: oklch(90.4% 0.150 104.0);
Tailwind
colors: {
  custom: {
    50: '#f8ec93',
    500: '#f0e462',
    950: '#000000',
  },
}
SCSS
$custom: #f0e462;
$custom-light: #f8ec93;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e462",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 98
  },
  "hsl": {
    "h": 54.93,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.90416,
    "c": 0.14999,
    "h": 104
  },
  "luminance": 0.74894
}

Semantic roles & 50–950 ramp

primary
#F0E462
secondary
#3440C2
accent
#19DF07
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F0E462

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

Preview Lab → · Contrast checker → · Palette generator →

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