#F5E470#F5E470

#F5E470 is a very light, vivid yellow. Relative luminance 0.761; OKLCH L 91.0% C 0.138 H 101.1°. Best body text is #000000 at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#F5E470
RGBrgb(245, 228, 112)
HSLhsl(52, 87%, 70%)
HSVhsv(52, 54%, 96%)
CMYKcmyk(0%, 6.9%, 54.3%, 3.9%)
CIE-LABlab(89.89, -8.53, 57.84)
CIE-LCHlch(89.89, 58.47, 98.39°)
OKLaboklab(90.99% -0.0265 0.1353)
OKLCHoklch(90.99% 0.138 101.1)
XYZxyz(68.3265, 76.0717, 26.4103)
Luminance0.7607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E470 #7081F5
analogous
#F5A270 #F5E470 #C3F570
triadic
#F5E470 #70F5E4 #E470F5
tetradic
#F5E470 #70F5A2 #7081F5 #F570C3
square
#F5E470 #70F5A2 #7081F5 #F570C3
split-complementary
#F5E470 #70C3F5 #A270F5
monochromatic
#DBC10F #F1D937 #F5E470 #F9EFA9 #FDFAE2

Accessibility & contrast

On white

1.30
#F5E470 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.21
#F5E470 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E470
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E470#FFFFFF#000000##000000
##F5E4701.001.3016.2116.21
#FFFFFF1.301.0021.0021.00
#00000016.2121.001.001.00
##00000016.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DE65
Deuteranopia (green-blind)
#FBE575
Tritanopia (blue-blind)
#FFD6CA
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f5e470;
/* rgb */ color: rgb(245, 228, 112);
/* oklch */ color: oklch(91.0% 0.138 101.1);
Tailwind
colors: {
  custom: {
    50: '#fbec9c',
    500: '#f5e470',
    950: '#000000',
  },
}
SCSS
$custom: #f5e470;
$custom-light: #fbec9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e470",
  "rgb": {
    "r": 245,
    "g": 228,
    "b": 112
  },
  "hsl": {
    "h": 52.331,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.90994,
    "c": 0.13786,
    "h": 101.1
  },
  "luminance": 0.76069
}

Semantic roles & 50–950 ramp

primary
#F5E470
secondary
#3A4DCF
accent
#1FE302
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5E470

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

Preview Lab → · Contrast checker → · Palette generator →

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