#F5D970#F5D970

#F5D970 is a very light, vivid yellow. Relative luminance 0.702; OKLCH L 88.8% C 0.129 H 94.7°. Best body text is #000000 at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#F5D970
RGBrgb(245, 217, 112)
HSLhsl(47, 87%, 70%)
HSVhsv(47, 54%, 96%)
CMYKcmyk(0%, 11.4%, 54.3%, 3.9%)
CIE-LABlab(87.10, -2.99, 54.59)
CIE-LCHlch(87.10, 54.67, 93.13°)
OKLaboklab(88.78% -0.0105 0.1282)
OKLCHoklch(88.78% 0.129 94.7)
XYZxyz(65.3962, 70.2110, 25.4335)
Luminance0.7021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D970 #708CF5
analogous
#F59670 #F5D970 #CFF570
triadic
#F5D970 #70F5D9 #D970F5
tetradic
#F5D970 #70F596 #708CF5 #F570CF
square
#F5D970 #70F596 #708CF5 #F570CF
split-complementary
#F5D970 #70CFF5 #9670F5
monochromatic
#DBB00F #F1CA37 #F5D970 #F9E8A9 #FDF7E2

Accessibility & contrast

On white

1.40
#F5D970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.04
#F5D970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D970
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D970#FFFFFF#000000##000000
##F5D9701.001.4015.0415.04
#FFFFFF1.401.0021.0021.00
#00000015.0421.001.001.00
##00000015.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD566
Deuteranopia (green-blind)
#F3DE74
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d970;
/* rgb */ color: rgb(245, 217, 112);
/* oklch */ color: oklch(88.8% 0.129 94.7);
Tailwind
colors: {
  custom: {
    50: '#fbe49c',
    500: '#f5d970',
    950: '#000000',
  },
}
SCSS
$custom: #f5d970;
$custom-light: #fbe49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d970",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 47.368,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.88782,
    "c": 0.12866,
    "h": 94.7
  },
  "luminance": 0.70208
}

Semantic roles & 50–950 ramp

primary
#F5D970
secondary
#3A59CF
accent
#31E302
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F5D970

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

Preview Lab → · Contrast checker → · Palette generator →

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