#F8E870#F8E870

#F8E870 is a very light, vivid yellow. Relative luminance 0.788; OKLCH L 92.1% C 0.142 H 101.8°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#F8E870
RGBrgb(248, 232, 112)
HSLhsl(53, 91%, 71%)
HSVhsv(53, 55%, 97%)
CMYKcmyk(0%, 6.5%, 54.8%, 2.7%)
CIE-LABlab(91.16, -9.31, 59.38)
CIE-LCHlch(91.16, 60.10, 98.91°)
OKLaboklab(92.06% -0.0289 0.1385)
OKLCHoklch(92.06% 0.142 101.8)
XYZxyz(70.4950, 78.8421, 26.8308)
Luminance0.7884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E870 #7080F8
analogous
#F8A470 #F8E870 #C4F870
triadic
#F8E870 #70F8E8 #E870F8
tetradic
#F8E870 #70F8A4 #7080F8 #F870C4
square
#F8E870 #70F8A4 #7080F8 #F870C4
split-complementary
#F8E870 #70C4F8 #A470F8
monochromatic
#E3C90B #F5DF36 #F8E870 #FBF1AA #FEFAE2

Accessibility & contrast

On white

1.25
#F8E870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.77
#F8E870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E870
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E870#FFFFFF#000000##000000
##F8E8701.001.2516.7716.77
#FFFFFF1.251.0021.0021.00
#00000016.7721.001.001.00
##00000016.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE264
Deuteranopia (green-blind)
#FFE976
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e870;
/* rgb */ color: rgb(248, 232, 112);
/* oklch */ color: oklch(92.1% 0.142 101.8);
Tailwind
colors: {
  custom: {
    50: '#fdef9c',
    500: '#f8e870',
    950: '#000000',
  },
}
SCSS
$custom: #f8e870;
$custom-light: #fdef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e870",
  "rgb": {
    "r": 248,
    "g": 232,
    "b": 112
  },
  "hsl": {
    "h": 52.941,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.92061,
    "c": 0.14152,
    "h": 101.8
  },
  "luminance": 0.7884
}

Semantic roles & 50–950 ramp

primary
#F8E870
secondary
#394BD3
accent
#1BE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F8E870

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

Preview Lab → · Contrast checker → · Palette generator →

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