#FEF58A#FEF58A

#FEF58A is a very light, vivid yellow. Relative luminance 0.882; OKLCH L 95.5% C 0.129 H 104.3°. Best body text is #000000 at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#FEF58A
RGBrgb(254, 245, 138)
HSLhsl(55, 98%, 77%)
HSVhsv(55, 46%, 100%)
CMYKcmyk(0%, 3.5%, 45.7%, 0.4%)
CIE-LABlab(95.25, -11.18, 52.31)
CIE-LCHlch(95.25, 53.49, 102.07°)
OKLaboklab(95.52% -0.032 0.1253)
OKLCHoklch(95.52% 0.129 104.3)
XYZxyz(78.1147, 88.2128, 36.9518)
Luminance0.8821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF58A #8A93FE
analogous
#FEBB8A #FEF58A #CDFE8A
triadic
#FEF58A #8AFEF5 #F58AFE
tetradic
#FEF58A #8AFEBB #8A93FE #FE8ACD
square
#FEF58A #8AFEBB #8A93FE #FE8ACD
split-complementary
#FEF58A #8ACDFE #BB8AFE
monochromatic
#FDEB11 #FDF04D #FEF58A #FFFAC7 #FFFCE1

Accessibility & contrast

On white

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

On black

18.64
#FEF58A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF58A
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF58A#FFFFFF#000000##000000
##FEF58A1.001.1318.6418.64
#FFFFFF1.131.0021.0021.00
#00000018.6421.001.001.00
##00000018.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE81
Deuteranopia (green-blind)
#FFF48F
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef58a;
/* rgb */ color: rgb(254, 245, 138);
/* oklch */ color: oklch(95.5% 0.129 104.3);
Tailwind
colors: {
  custom: {
    50: '#fff8ae',
    500: '#fef58a',
    950: '#000000',
  },
}
SCSS
$custom: #fef58a;
$custom-light: #fff8ae;
$custom-dark: #000000;
JSON
{
  "hex": "#fef58a",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 138
  },
  "hsl": {
    "h": 55.345,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.95517,
    "c": 0.12928,
    "h": 104.3
  },
  "luminance": 0.88211
}

Semantic roles & 50–950 ramp

primary
#FEF58A
secondary
#4E59DE
accent
#12E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF58A

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

Preview Lab → · Contrast checker → · Palette generator →

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