#FEF571#FEF571

#FEF571 is a very light, vivid yellow. Relative luminance 0.876; OKLCH L 95.2% C 0.153 H 105.3°. Best body text is #000000 at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#FEF571
RGBrgb(254, 245, 113)
HSLhsl(56, 99%, 72%)
HSVhsv(56, 56%, 100%)
CMYKcmyk(0%, 3.5%, 55.5%, 0.4%)
CIE-LABlab(94.98, -13.25, 63.42)
CIE-LCHlch(94.98, 64.79, 101.80°)
OKLaboklab(95.21% -0.0404 0.1472)
OKLCHoklch(95.21% 0.153 105.3)
XYZxyz(76.5085, 87.5703, 28.4922)
Luminance0.8757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF571 #717AFE
analogous
#FEAF71 #FEF571 #C1FE71
triadic
#FEF571 #71FEF5 #F571FE
tetradic
#FEF571 #71FEAF #717AFE #FE71C1
square
#FEF571 #71FEAF #717AFE #FE71C1
split-complementary
#FEF571 #71C1FE #AF71FE
monochromatic
#F3E302 #FEF134 #FEF571 #FEF9AE #FFFDE1

Accessibility & contrast

On white

1.13
#FEF571 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.51
#FEF571 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF571
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF571#FFFFFF#000000##000000
##FEF5711.001.1318.5118.51
#FFFFFF1.131.0021.0021.00
#00000018.5121.001.001.00
##00000018.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF378
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef571;
/* rgb */ color: rgb(254, 245, 113);
/* oklch */ color: oklch(95.2% 0.153 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff89e',
    500: '#fef571',
    950: '#000000',
  },
}
SCSS
$custom: #fef571;
$custom-light: #fff89e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef571",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 113
  },
  "hsl": {
    "h": 56.17,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.95214,
    "c": 0.15267,
    "h": 105.3
  },
  "luminance": 0.87568
}

Semantic roles & 50–950 ramp

primary
#FEF571
secondary
#3943DB
accent
#0FE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF571

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

Preview Lab → · Contrast checker → · Palette generator →

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