#F5E972#F5E972

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

Color values

HEX#F5E972
RGBrgb(245, 233, 114)
HSLhsl(55, 87%, 70%)
HSVhsv(55, 53%, 96%)
CMYKcmyk(0%, 4.9%, 53.5%, 3.9%)
CIE-LABlab(91.19, -10.86, 58.44)
CIE-LCHlch(91.19, 59.44, 100.53°)
OKLaboklab(92.03% -0.0329 0.1368)
OKLCHoklch(92.03% 0.141 103.5)
XYZxyz(69.8345, 78.9076, 27.4684)
Luminance0.7891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E972 #727EF5
analogous
#F5A772 #F5E972 #BFF572
triadic
#F5E972 #72F5E9 #E972F5
tetradic
#F5E972 #72F5A7 #727EF5 #F572BF
square
#F5E972 #72F5A7 #727EF5 #F572BF
split-complementary
#F5E972 #72BFF5 #A772F5
monochromatic
#DDCA10 #F1E039 #F5E972 #F9F2AB #FDFBE2

Accessibility & contrast

On white

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

On black

16.78
#F5E972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E972
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E972#FFFFFF#000000##000000
##F5E9721.001.2516.7816.78
#FFFFFF1.251.0021.0021.00
#00000016.7821.001.001.00
##00000016.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e972;
/* rgb */ color: rgb(245, 233, 114);
/* oklch */ color: oklch(92.0% 0.141 103.5);
Tailwind
colors: {
  custom: {
    50: '#fbef9e',
    500: '#f5e972',
    950: '#000000',
  },
}
SCSS
$custom: #f5e972;
$custom-light: #fbef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e972",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 114
  },
  "hsl": {
    "h": 54.504,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.92032,
    "c": 0.14069,
    "h": 103.5
  },
  "luminance": 0.78905
}

Semantic roles & 50–950 ramp

primary
#F5E972
secondary
#3C49CF
accent
#17E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F5E972

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

Preview Lab → · Contrast checker → · Palette generator →

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