#F0E472#F0E472

#F0E472 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.6% C 0.136 H 103.3°. Best body text is #000000 at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#F0E472
RGBrgb(240, 228, 114)
HSLhsl(54, 81%, 69%)
HSVhsv(54, 53%, 94%)
CMYKcmyk(0%, 5%, 52.5%, 5.9%)
CIE-LABlab(89.50, -10.38, 56.37)
CIE-LCHlch(89.50, 57.31, 100.43°)
OKLaboklab(90.59% -0.0313 0.1324)
OKLCHoklch(90.59% 0.136 103.3)
XYZxyz(66.7179, 75.2292, 26.9226)
Luminance0.7523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E472 #727EF0
analogous
#F0A572 #F0E472 #BDF072
triadic
#F0E472 #72F0E4 #E472F0
tetradic
#F0E472 #72F0A5 #727EF0 #F072BD
square
#F0E472 #72F0A5 #727EF0 #F072BD
split-complementary
#F0E472 #72BDF0 #A572F0
monochromatic
#D1C016 #EAD93B #F0E472 #F6EFA9 #FCF9E1

Accessibility & contrast

On white

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

On black

16.05
#F0E472 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E472
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E472#FFFFFF#000000##000000
##F0E4721.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DD67
Deuteranopia (green-blind)
#F9E477
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f0e472;
/* rgb */ color: rgb(240, 228, 114);
/* oklch */ color: oklch(90.6% 0.136 103.3);
Tailwind
colors: {
  custom: {
    50: '#f7ec9d',
    500: '#f0e472',
    950: '#000000',
  },
}
SCSS
$custom: #f0e472;
$custom-light: #f7ec9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e472",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 114
  },
  "hsl": {
    "h": 54.286,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.9059,
    "c": 0.13603,
    "h": 103.3
  },
  "luminance": 0.75227
}

Semantic roles & 50–950 ramp

primary
#F0E472
secondary
#3D4AC9
accent
#1DDD08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E472

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

Preview Lab → · Contrast checker → · Palette generator →

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