#FEF371#FEF371

#FEF371 is a very light, vivid yellow. Relative luminance 0.864; OKLCH L 94.8% C 0.151 H 104.4°. Best body text is #000000 at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#FEF371
RGBrgb(254, 243, 113)
HSLhsl(55, 99%, 72%)
HSVhsv(55, 56%, 100%)
CMYKcmyk(0%, 4.3%, 55.5%, 0.4%)
CIE-LABlab(94.47, -12.27, 62.84)
CIE-LCHlch(94.47, 64.03, 101.05°)
OKLaboklab(94.81% -0.0376 0.146)
OKLCHoklch(94.81% 0.151 104.4)
XYZxyz(75.9067, 86.3668, 28.2916)
Luminance0.8636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF371 #717CFE
analogous
#FEAD71 #FEF371 #C3FE71
triadic
#FEF371 #71FEF3 #F371FE
tetradic
#FEF371 #71FEAD #717CFE #FE71C3
square
#FEF371 #71FEAD #717CFE #FE71C3
split-complementary
#FEF371 #71C3FE #AD71FE
monochromatic
#F3E002 #FEEE34 #FEF371 #FEF8AE #FFFCE1

Accessibility & contrast

On white

1.15
#FEF371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.27
#FEF371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF371
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF371#FFFFFF#000000##000000
##FEF3711.001.1518.2718.27
#FFFFFF1.151.0021.0021.00
#00000018.2721.001.001.00
##00000018.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF278
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef371;
/* rgb */ color: rgb(254, 243, 113);
/* oklch */ color: oklch(94.8% 0.151 104.4);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fef371',
    950: '#000000',
  },
}
SCSS
$custom: #fef371;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef371",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 55.319,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.94808,
    "c": 0.15074,
    "h": 104.4
  },
  "luminance": 0.86364
}

Semantic roles & 50–950 ramp

primary
#FEF371
secondary
#3945DB
accent
#12E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF371

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

Preview Lab → · Contrast checker → · Palette generator →

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