#F5E970#F5E970

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

Color values

HEX#F5E970
RGBrgb(245, 233, 112)
HSLhsl(55, 87%, 70%)
HSVhsv(55, 54%, 96%)
CMYKcmyk(0%, 4.9%, 54.3%, 3.9%)
CIE-LABlab(91.17, -11.01, 59.32)
CIE-LCHlch(91.17, 60.34, 100.52°)
OKLaboklab(92.01% -0.0336 0.1385)
OKLCHoklch(92.01% 0.143 103.6)
XYZxyz(69.7219, 78.8625, 26.8754)
Luminance0.7886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E970 #707CF5
analogous
#F5A670 #F5E970 #BFF570
triadic
#F5E970 #70F5E9 #E970F5
tetradic
#F5E970 #70F5A6 #707CF5 #F570BF
square
#F5E970 #70F5A6 #707CF5 #F570BF
split-complementary
#F5E970 #70BFF5 #A670F5
monochromatic
#DBC90F #F1E037 #F5E970 #F9F2A9 #FDFBE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F5E970#FFFFFF#000000##000000
##F5E9701.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)
#FBE264
Deuteranopia (green-blind)
#FFE976
Tritanopia (blue-blind)
#FFDBCE
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f5e970;
/* rgb */ color: rgb(245, 233, 112);
/* oklch */ color: oklch(92.0% 0.142 103.6);
Tailwind
colors: {
  custom: {
    50: '#fbef9c',
    500: '#f5e970',
    950: '#000000',
  },
}
SCSS
$custom: #f5e970;
$custom-light: #fbef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e970",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 112
  },
  "hsl": {
    "h": 54.586,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.92009,
    "c": 0.1425,
    "h": 103.6
  },
  "luminance": 0.7886
}

Semantic roles & 50–950 ramp

primary
#F5E970
secondary
#3A48CF
accent
#16E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F5E970

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

Preview Lab → · Contrast checker → · Palette generator →

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