#F0D970#F0D970

#F0D970 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 88.3% C 0.128 H 97.2°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#F0D970
RGBrgb(240, 217, 112)
HSLhsl(49, 81%, 69%)
HSVhsv(49, 53%, 94%)
CMYKcmyk(0%, 9.6%, 53.3%, 5.9%)
CIE-LABlab(86.66, -5.02, 53.97)
CIE-LCHlch(86.66, 54.20, 95.31°)
OKLaboklab(88.33% -0.0161 0.127)
OKLCHoklch(88.33% 0.128 97.2)
XYZxyz(63.6749, 69.3235, 25.3528)
Luminance0.6932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D970 #7087F0
analogous
#F09970 #F0D970 #C7F070
triadic
#F0D970 #70F0D9 #D970F0
tetradic
#F0D970 #70F099 #7087F0 #F070C7
square
#F0D970 #70F099 #7087F0 #F070C7
split-complementary
#F0D970 #70C7F0 #9970F0
monochromatic
#D0AE16 #EACA39 #F0D970 #F6E8A7 #FCF6DF

Accessibility & contrast

On white

1.41
#F0D970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.86
#F0D970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D970
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D970#FFFFFF#000000##000000
##F0D9701.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD466
Deuteranopia (green-blind)
#F1DC75
Tritanopia (blue-blind)
#FFCCC1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d970;
/* rgb */ color: rgb(240, 217, 112);
/* oklch */ color: oklch(88.3% 0.128 97.2);
Tailwind
colors: {
  custom: {
    50: '#f7e49c',
    500: '#f0d970',
    950: '#000000',
  },
}
SCSS
$custom: #f0d970;
$custom-light: #f7e49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d970",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 49.219,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.88334,
    "c": 0.12798,
    "h": 97.2
  },
  "luminance": 0.69321
}

Semantic roles & 50–950 ramp

primary
#F0D970
secondary
#3B55C9
accent
#2EDD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D970

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

Preview Lab → · Contrast checker → · Palette generator →

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