#F9E871#F9E871

#F9E871 is a very light, vivid yellow. Relative luminance 0.790; OKLCH L 92.2% C 0.141 H 101.3°. Best body text is #000000 at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#F9E871
RGBrgb(249, 232, 113)
HSLhsl(53, 92%, 71%)
HSVhsv(53, 55%, 98%)
CMYKcmyk(0%, 6.8%, 54.6%, 2.4%)
CIE-LABlab(91.26, -8.84, 59.05)
CIE-LCHlch(91.26, 59.71, 98.51°)
OKLaboklab(92.16% -0.0275 0.1379)
OKLCHoklch(92.16% 0.141 101.3)
XYZxyz(70.9066, 79.0479, 27.1423)
Luminance0.7904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E871 #7182F9
analogous
#F9A471 #F9E871 #C6F971
triadic
#F9E871 #71F9E8 #E871F9
tetradic
#F9E871 #71F9A4 #7182F9 #F971C6
square
#F9E871 #71F9A4 #7182F9 #F971C6
split-complementary
#F9E871 #71C6F9 #A471F9
monochromatic
#E6CA0A #F7DE36 #F9E871 #FBF2AC #FEFAE2

Accessibility & contrast

On white

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

On black

16.81
#F9E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E871
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E871#FFFFFF#000000##000000
##F9E8711.001.2516.8116.81
#FFFFFF1.251.0021.0021.00
#00000016.8121.001.001.00
##00000016.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE265
Deuteranopia (green-blind)
#FFE977
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f9e871;
/* rgb */ color: rgb(249, 232, 113);
/* oklch */ color: oklch(92.2% 0.141 101.3);
Tailwind
colors: {
  custom: {
    50: '#feef9d',
    500: '#f9e871',
    950: '#000000',
  },
}
SCSS
$custom: #f9e871;
$custom-light: #feef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e871",
  "rgb": {
    "r": 249,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 52.5,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.92158,
    "c": 0.14064,
    "h": 101.3
  },
  "luminance": 0.79045
}

Semantic roles & 50–950 ramp

primary
#F9E871
secondary
#3A4DD4
accent
#1DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F9E871

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

Preview Lab → · Contrast checker → · Palette generator →

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