#FEF58B#FEF58B

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

Color values

HEX#FEF58B
RGBrgb(254, 245, 139)
HSLhsl(55, 98%, 77%)
HSVhsv(55, 45%, 100%)
CMYKcmyk(0%, 3.5%, 45.3%, 0.4%)
CIE-LABlab(95.26, -11.09, 51.85)
CIE-LCHlch(95.26, 53.02, 102.07°)
OKLaboklab(95.53% -0.0316 0.1243)
OKLCHoklch(95.53% 0.128 104.3)
XYZxyz(78.1875, 88.2419, 37.3348)
Luminance0.8824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF58B #8B94FE
analogous
#FEBB8B #FEF58B #CEFE8B
triadic
#FEF58B #8BFEF5 #F58BFE
tetradic
#FEF58B #8BFEBB #8B94FE #FE8BCE
square
#FEF58B #8BFEBB #8B94FE #FE8BCE
split-complementary
#FEF58B #8BCEFE #BB8BFE
monochromatic
#FDEB12 #FDF04E #FEF58B #FFFAC8 #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF58B#FFFFFF#000000##000000
##FEF58B1.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)
#FFEE82
Deuteranopia (green-blind)
#FFF490
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef58b;
/* rgb */ color: rgb(254, 245, 139);
/* oklch */ color: oklch(95.5% 0.128 104.3);
Tailwind
colors: {
  custom: {
    50: '#fff8af',
    500: '#fef58b',
    950: '#000000',
  },
}
SCSS
$custom: #fef58b;
$custom-light: #fff8af;
$custom-dark: #000000;
JSON
{
  "hex": "#fef58b",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 139
  },
  "hsl": {
    "h": 55.304,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.95531,
    "c": 0.12826,
    "h": 104.3
  },
  "luminance": 0.8824
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF58B

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

Preview Lab → · Contrast checker → · Palette generator →

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