#F8E970#F8E970

#F8E970 is a very light, vivid yellow. Relative luminance 0.794; OKLCH L 92.3% C 0.142 H 102.3°. Best body text is #000000 at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#F8E970
RGBrgb(248, 233, 112)
HSLhsl(53, 91%, 71%)
HSVhsv(53, 55%, 97%)
CMYKcmyk(0%, 6%, 54.8%, 2.7%)
CIE-LABlab(91.42, -9.81, 59.67)
CIE-LCHlch(91.42, 60.47, 99.34°)
OKLaboklab(92.26% -0.0303 0.1392)
OKLCHoklch(92.26% 0.142 102.3)
XYZxyz(70.7773, 79.4067, 26.9249)
Luminance0.7940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E970 #707FF8
analogous
#F8A570 #F8E970 #C3F870
triadic
#F8E970 #70F8E9 #E970F8
tetradic
#F8E970 #70F8A5 #707FF8 #F870C3
square
#F8E970 #70F8A5 #707FF8 #F870C3
split-complementary
#F8E970 #70C3F8 #A570F8
monochromatic
#E3CB0B #F5E036 #F8E970 #FBF2AA #FEFBE2

Accessibility & contrast

On white

1.24
#F8E970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.88
#F8E970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E970
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E970#FFFFFF#000000##000000
##F8E9701.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8e970;
/* rgb */ color: rgb(248, 233, 112);
/* oklch */ color: oklch(92.3% 0.142 102.3);
Tailwind
colors: {
  custom: {
    50: '#fdef9c',
    500: '#f8e970',
    950: '#000000',
  },
}
SCSS
$custom: #f8e970;
$custom-light: #fdef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e970",
  "rgb": {
    "r": 248,
    "g": 233,
    "b": 112
  },
  "hsl": {
    "h": 53.382,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.92264,
    "c": 0.14244,
    "h": 102.3
  },
  "luminance": 0.79404
}

Semantic roles & 50–950 ramp

primary
#F8E970
secondary
#394AD3
accent
#19E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F8E970

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

Preview Lab → · Contrast checker → · Palette generator →

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