#FEF18A#FEF18A

#FEF18A is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.7% C 0.125 H 102.1°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#FEF18A
RGBrgb(254, 241, 138)
HSLhsl(53, 98%, 77%)
HSVhsv(53, 46%, 100%)
CMYKcmyk(0%, 5.1%, 45.7%, 0.4%)
CIE-LABlab(94.23, -9.21, 51.06)
CIE-LCHlch(94.23, 51.88, 100.22°)
OKLaboklab(94.71% -0.0263 0.1225)
OKLCHoklch(94.71% 0.125 102.1)
XYZxyz(76.9177, 85.8188, 36.5528)
Luminance0.8582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF18A #8A97FE
analogous
#FEB78A #FEF18A #D1FE8A
triadic
#FEF18A #8AFEF1 #F18AFE
tetradic
#FEF18A #8AFEB7 #8A97FE #FE8AD1
square
#FEF18A #8AFEB7 #8A97FE #FE8AD1
split-complementary
#FEF18A #8AD1FE #B78AFE
monochromatic
#FDE211 #FDEA4D #FEF18A #FFF8C7 #FFFBE1

Accessibility & contrast

On white

1.16
#FEF18A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.16
#FEF18A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF18A
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF18A#FFFFFF#000000##000000
##FEF18A1.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB81
Deuteranopia (green-blind)
#FFF18E
Tritanopia (blue-blind)
#FFE4D8
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef18a;
/* rgb */ color: rgb(254, 241, 138);
/* oklch */ color: oklch(94.7% 0.125 102.1);
Tailwind
colors: {
  custom: {
    50: '#fff5ae',
    500: '#fef18a',
    950: '#000000',
  },
}
SCSS
$custom: #fef18a;
$custom-light: #fff5ae;
$custom-dark: #000000;
JSON
{
  "hex": "#fef18a",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 138
  },
  "hsl": {
    "h": 53.276,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.94711,
    "c": 0.12527,
    "h": 102.1
  },
  "luminance": 0.85816
}

Semantic roles & 50–950 ramp

primary
#FEF18A
secondary
#4E5EDE
accent
#1AE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF18A

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

Preview Lab → · Contrast checker → · Palette generator →

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