#FEF28E#FEF28E

#FEF28E is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 95.0% C 0.122 H 102.4°. Best body text is #000000 at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#FEF28E
RGBrgb(254, 242, 142)
HSLhsl(54, 98%, 78%)
HSVhsv(54, 44%, 100%)
CMYKcmyk(0%, 4.7%, 44.1%, 0.4%)
CIE-LABlab(94.54, -9.33, 49.52)
CIE-LCHlch(94.54, 50.39, 100.66°)
OKLaboklab(94.97% -0.0263 0.1193)
OKLCHoklch(94.97% 0.122 102.4)
XYZxyz(77.5094, 86.5304, 38.2050)
Luminance0.8653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF28E #8E9AFE
analogous
#FEBA8E #FEF28E #D2FE8E
triadic
#FEF28E #8EFEF2 #F28EFE
tetradic
#FEF28E #8EFEBA #8E9AFE #FE8ED2
square
#FEF28E #8EFEBA #8E9AFE #FE8ED2
split-complementary
#FEF28E #8ED2FE #BA8EFE
monochromatic
#FDE415 #FDEB51 #FEF28E #FFF9CB #FFFCE1

Accessibility & contrast

On white

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

On black

18.31
#FEF28E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF28E
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF28E#FFFFFF#000000##000000
##FEF28E1.001.1518.3118.31
#FFFFFF1.151.0021.0021.00
#00000018.3121.001.001.00
##00000018.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC86
Deuteranopia (green-blind)
#FFF292
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef28e;
/* rgb */ color: rgb(254, 242, 142);
/* oklch */ color: oklch(95.0% 0.122 102.4);
Tailwind
colors: {
  custom: {
    50: '#fff6b1',
    500: '#fef28e',
    950: '#000000',
  },
}
SCSS
$custom: #fef28e;
$custom-light: #fff6b1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef28e",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 142
  },
  "hsl": {
    "h": 53.571,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.94968,
    "c": 0.12217,
    "h": 102.4
  },
  "luminance": 0.86528
}

Semantic roles & 50–950 ramp

primary
#FEF28E
secondary
#5160DF
accent
#19E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF28E

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

Preview Lab → · Contrast checker → · Palette generator →

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