#FEF871#FEF871

#FEF871 is a very light, vivid yellow. Relative luminance 0.894; OKLCH L 95.8% C 0.156 H 106.6°. Best body text is #000000 at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#FEF871
RGBrgb(254, 248, 113)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 56%, 100%)
CMYKcmyk(0%, 2.4%, 55.5%, 0.4%)
CIE-LABlab(95.75, -14.71, 64.29)
CIE-LCHlch(95.75, 65.95, 102.89°)
OKLaboklab(95.83% -0.0446 0.1491)
OKLCHoklch(95.83% 0.156 106.6)
XYZxyz(77.4234, 89.4002, 28.7971)
Luminance0.8940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF871 #7177FE
analogous
#FEB271 #FEF871 #BEFE71
triadic
#FEF871 #71FEF8 #F871FE
tetradic
#FEF871 #71FEB2 #7177FE #FE71BE
square
#FEF871 #71FEB2 #7177FE #FE71BE
split-complementary
#FEF871 #71BEFE #B271FE
monochromatic
#F3E902 #FEF534 #FEF871 #FEFBAE #FFFEE1

Accessibility & contrast

On white

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

On black

18.88
#FEF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF871
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF871#FFFFFF#000000##000000
##FEF8711.001.1118.8818.88
#FFFFFF1.111.0021.0021.00
#00000018.8821.001.001.00
##00000018.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef871;
/* rgb */ color: rgb(254, 248, 113);
/* oklch */ color: oklch(95.8% 0.156 106.6);
Tailwind
colors: {
  custom: {
    50: '#fffa9e',
    500: '#fef871',
    950: '#000000',
  },
}
SCSS
$custom: #fef871;
$custom-light: #fffa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef871",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 57.447,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.95825,
    "c": 0.15561,
    "h": 106.6
  },
  "luminance": 0.89398
}

Semantic roles & 50–950 ramp

primary
#FEF871
secondary
#393FDB
accent
#0AE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF871

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

Preview Lab → · Contrast checker → · Palette generator →

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