#FEF58C#FEF58C

#FEF58C is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.5% C 0.127 H 104.2°. Best body text is #000000 at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#FEF58C
RGBrgb(254, 245, 140)
HSLhsl(55, 98%, 77%)
HSVhsv(55, 45%, 100%)
CMYKcmyk(0%, 3.5%, 44.9%, 0.4%)
CIE-LABlab(95.28, -10.99, 51.39)
CIE-LCHlch(95.28, 52.55, 102.08°)
OKLaboklab(95.55% -0.0312 0.1234)
OKLCHoklch(95.55% 0.127 104.2)
XYZxyz(78.2609, 88.2713, 37.7214)
Luminance0.8827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF58C #8C95FE
analogous
#FEBC8C #FEF58C #CEFE8C
triadic
#FEF58C #8CFEF5 #F58CFE
tetradic
#FEF58C #8CFEBC #8C95FE #FE8CCE
square
#FEF58C #8CFEBC #8C95FE #FE8CCE
split-complementary
#FEF58C #8CCEFE #BC8CFE
monochromatic
#FDEA13 #FDF04F #FEF58C #FFFAC9 #FFFCE1

Accessibility & contrast

On white

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

On black

18.65
#FEF58C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF58C
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF58C#FFFFFF#000000##000000
##FEF58C1.001.1318.6518.65
#FFFFFF1.131.0021.0021.00
#00000018.6521.001.001.00
##00000018.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE83
Deuteranopia (green-blind)
#FFF491
Tritanopia (blue-blind)
#FFE9DC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef58c;
/* rgb */ color: rgb(254, 245, 140);
/* oklch */ color: oklch(95.5% 0.127 104.2);
Tailwind
colors: {
  custom: {
    50: '#fff8af',
    500: '#fef58c',
    950: '#000000',
  },
}
SCSS
$custom: #fef58c;
$custom-light: #fff8af;
$custom-dark: #000000;
JSON
{
  "hex": "#fef58c",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 140
  },
  "hsl": {
    "h": 55.263,
    "s": 98.276,
    "l": 77.255
  },
  "oklch": {
    "l": 0.95545,
    "c": 0.12725,
    "h": 104.2
  },
  "luminance": 0.88269
}

Semantic roles & 50–950 ramp

primary
#FEF58C
secondary
#505BDF
accent
#12E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF58C

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

Preview Lab → · Contrast checker → · Palette generator →

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