#FEF873#FEF873

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

Color values

HEX#FEF873
RGBrgb(254, 248, 115)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 55%, 100%)
CMYKcmyk(0%, 2.4%, 54.7%, 0.4%)
CIE-LABlab(95.77, -14.56, 63.44)
CIE-LCHlch(95.77, 65.09, 102.93°)
OKLaboklab(95.85% -0.0439 0.1475)
OKLCHoklch(95.85% 0.154 106.6)
XYZxyz(77.5372, 89.4457, 29.3967)
Luminance0.8944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF873 #7379FE
analogous
#FEB273 #FEF873 #BFFE73
triadic
#FEF873 #73FEF8 #F873FE
tetradic
#FEF873 #73FEB2 #7379FE #FE73BF
square
#FEF873 #73FEB2 #7379FE #FE73BF
split-complementary
#FEF873 #73BFFE #B273FE
monochromatic
#F5EA02 #FEF536 #FEF873 #FEFBB0 #FFFDE1

Accessibility & contrast

On white

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

On black

18.89
#FEF873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF873
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF873#FFFFFF#000000##000000
##FEF8731.001.1118.8918.89
#FFFFFF1.111.0021.0021.00
#00000018.8921.001.001.00
##00000018.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF065
Deuteranopia (green-blind)
#FFF57A
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef873;
/* rgb */ color: rgb(254, 248, 115);
/* oklch */ color: oklch(95.8% 0.154 106.6);
Tailwind
colors: {
  custom: {
    50: '#fffa9f',
    500: '#fef873',
    950: '#000000',
  },
}
SCSS
$custom: #fef873;
$custom-light: #fffa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#fef873",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 57.41,
    "s": 98.582,
    "l": 72.353
  },
  "oklch": {
    "l": 0.95847,
    "c": 0.15389,
    "h": 106.6
  },
  "luminance": 0.89443
}

Semantic roles & 50–950 ramp

primary
#FEF873
secondary
#3A41DB
accent
#0AE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF873

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

Preview Lab → · Contrast checker → · Palette generator →

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