#F0E470#F0E470

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

Color values

HEX#F0E470
RGBrgb(240, 228, 112)
HSLhsl(54, 81%, 69%)
HSVhsv(54, 53%, 94%)
CMYKcmyk(0%, 5%, 53.3%, 5.9%)
CIE-LABlab(89.48, -10.54, 57.26)
CIE-LCHlch(89.48, 58.22, 100.43°)
OKLaboklab(90.57% -0.0319 0.1341)
OKLCHoklch(90.57% 0.138 103.4)
XYZxyz(66.6053, 75.1842, 26.3296)
Luminance0.7518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E470 #707CF0
analogous
#F0A470 #F0E470 #BCF070
triadic
#F0E470 #70F0E4 #E470F0
tetradic
#F0E470 #70F0A4 #707CF0 #F070BC
square
#F0E470 #70F0A4 #707CF0 #F070BC
split-complementary
#F0E470 #70BCF0 #A470F0
monochromatic
#D0BE16 #EADA39 #F0E470 #F6EEA7 #FCF9DF

Accessibility & contrast

On white

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

On black

16.04
#F0E470 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E470
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E470#FFFFFF#000000##000000
##F0E4701.001.3116.0416.04
#FFFFFF1.311.0021.0021.00
#00000016.0421.001.001.00
##00000016.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0e470;
/* rgb */ color: rgb(240, 228, 112);
/* oklch */ color: oklch(90.6% 0.138 103.4);
Tailwind
colors: {
  custom: {
    50: '#f7ec9c',
    500: '#f0e470',
    950: '#000000',
  },
}
SCSS
$custom: #f0e470;
$custom-light: #f7ec9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e470",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 112
  },
  "hsl": {
    "h": 54.375,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.90566,
    "c": 0.13786,
    "h": 103.4
  },
  "luminance": 0.75182
}

Semantic roles & 50–950 ramp

primary
#F0E470
secondary
#3B49C9
accent
#1CDD08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0E470

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

Preview Lab → · Contrast checker → · Palette generator →

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