#F5E870#F5E870

#F5E870 is a very light, vivid yellow. Relative luminance 0.783; OKLCH L 91.8% C 0.142 H 103.1°. Best body text is #000000 at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#F5E870
RGBrgb(245, 232, 112)
HSLhsl(54, 87%, 70%)
HSVhsv(54, 54%, 96%)
CMYKcmyk(0%, 5.3%, 54.3%, 3.9%)
CIE-LABlab(90.92, -10.52, 59.03)
CIE-LCHlch(90.92, 59.96, 100.10°)
OKLaboklab(91.81% -0.0322 0.1378)
OKLCHoklch(91.81% 0.142 103.1)
XYZxyz(69.4396, 78.2979, 26.7813)
Luminance0.7830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E870 #707DF5
analogous
#F5A570 #F5E870 #C0F570
triadic
#F5E870 #70F5E8 #E870F5
tetradic
#F5E870 #70F5A5 #707DF5 #F570C0
square
#F5E870 #70F5A5 #707DF5 #F570C0
split-complementary
#F5E870 #70C0F5 #A570F5
monochromatic
#DBC70F #F1DF37 #F5E870 #F9F1A9 #FDFAE2

Accessibility & contrast

On white

1.26
#F5E870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.66
#F5E870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E870
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E870#FFFFFF#000000##000000
##F5E8701.001.2616.6616.66
#FFFFFF1.261.0021.0021.00
#00000016.6621.001.001.00
##00000016.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE164
Deuteranopia (green-blind)
#FEE876
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e870;
/* rgb */ color: rgb(245, 232, 112);
/* oklch */ color: oklch(91.8% 0.142 103.1);
Tailwind
colors: {
  custom: {
    50: '#fbef9c',
    500: '#f5e870',
    950: '#000000',
  },
}
SCSS
$custom: #f5e870;
$custom-light: #fbef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e870",
  "rgb": {
    "r": 245,
    "g": 232,
    "b": 112
  },
  "hsl": {
    "h": 54.135,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.91806,
    "c": 0.14155,
    "h": 103.1
  },
  "luminance": 0.78296
}

Semantic roles & 50–950 ramp

primary
#F5E870
secondary
#3A49CF
accent
#18E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F5E870

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

Preview Lab → · Contrast checker → · Palette generator →

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