#F8D970#F8D970

#F8D970 is a very light, vivid yellow. Relative luminance 0.708; OKLCH L 89.1% C 0.129 H 93.2°. Best body text is #000000 at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#F8D970
RGBrgb(248, 217, 112)
HSLhsl(46, 91%, 71%)
HSVhsv(46, 55%, 97%)
CMYKcmyk(0%, 12.5%, 54.8%, 2.7%)
CIE-LABlab(87.37, -1.77, 54.97)
CIE-LCHlch(87.37, 54.99, 91.85°)
OKLaboklab(89.06% -0.0072 0.129)
OKLCHoklch(89.06% 0.129 93.2)
XYZxyz(66.4515, 70.7551, 25.4830)
Luminance0.7075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D970 #708FF8
analogous
#F89570 #F8D970 #D3F870
triadic
#F8D970 #70F8D9 #D970F8
tetradic
#F8D970 #70F895 #708FF8 #F870D3
square
#F8D970 #70F895 #708FF8 #F870D3
split-complementary
#F8D970 #70D3F8 #9570F8
monochromatic
#E3B10B #F5C936 #F8D970 #FBE9AA #FEF7E2

Accessibility & contrast

On white

1.39
#F8D970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.15
#F8D970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D970
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D970#FFFFFF#000000##000000
##F8D9701.001.3915.1515.15
#FFFFFF1.391.0021.0021.00
#00000015.1521.001.001.00
##00000015.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD666
Deuteranopia (green-blind)
#F4DF74
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f8d970;
/* rgb */ color: rgb(248, 217, 112);
/* oklch */ color: oklch(89.1% 0.129 93.2);
Tailwind
colors: {
  custom: {
    50: '#fde49c',
    500: '#f8d970',
    950: '#000000',
  },
}
SCSS
$custom: #f8d970;
$custom-light: #fde49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d970",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 46.324,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.89055,
    "c": 0.1292,
    "h": 93.2
  },
  "luminance": 0.70752
}

Semantic roles & 50–950 ramp

primary
#F8D970
secondary
#395CD3
accent
#34E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D970

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

Preview Lab → · Contrast checker → · Palette generator →

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