#FDF871#FDF871

#FDF871 is a very light, vivid yellow. Relative luminance 0.892; OKLCH L 95.7% C 0.156 H 107.0°. Best body text is #000000 at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#FDF871
RGBrgb(253, 248, 113)
HSLhsl(58, 97%, 72%)
HSVhsv(58, 55%, 99%)
CMYKcmyk(0%, 2%, 55.3%, 0.8%)
CIE-LABlab(95.67, -15.11, 64.18)
CIE-LCHlch(95.67, 65.93, 103.24°)
OKLaboklab(95.74% -0.0456 0.1489)
OKLCHoklch(95.74% 0.156 107)
XYZxyz(77.0583, 89.2120, 28.7800)
Luminance0.8921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF871 #7176FD
analogous
#FDB271 #FDF871 #BCFD71
triadic
#FDF871 #71FDF8 #F871FD
tetradic
#FDF871 #71FDB2 #7176FD #FD71BC
square
#FDF871 #71FDB2 #7176FD #FD71BC
split-complementary
#FDF871 #71BCFD #B271FD
monochromatic
#F0E803 #FCF535 #FDF871 #FEFBAD #FFFEE1

Accessibility & contrast

On white

1.11
#FDF871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.84
#FDF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF871
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF871#FFFFFF#000000##000000
##FDF8711.001.1118.8418.84
#FFFFFF1.111.0021.0021.00
#00000018.8421.001.001.00
##00000018.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF63
Deuteranopia (green-blind)
#FFF578
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fdf871;
/* rgb */ color: rgb(253, 248, 113);
/* oklch */ color: oklch(95.7% 0.156 107.0);
Tailwind
colors: {
  custom: {
    50: '#fffa9e',
    500: '#fdf871',
    950: '#000000',
  },
}
SCSS
$custom: #fdf871;
$custom-light: #fffa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf871",
  "rgb": {
    "r": 253,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 57.857,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.95744,
    "c": 0.15571,
    "h": 107
  },
  "luminance": 0.8921
}

Semantic roles & 50–950 ramp

primary
#FDF871
secondary
#393FD9
accent
#08E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FDF871

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

Preview Lab → · Contrast checker → · Palette generator →

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