#FEF581#FEF581

#FEF581 is a very light, vivid yellow. Relative luminance 0.880; OKLCH L 95.4% C 0.138 H 104.7°. Best body text is #000000 at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#FEF581
RGBrgb(254, 245, 129)
HSLhsl(56, 98%, 75%)
HSVhsv(56, 49%, 100%)
CMYKcmyk(0%, 3.5%, 49.2%, 0.4%)
CIE-LABlab(95.15, -11.98, 56.40)
CIE-LCHlch(95.15, 57.65, 101.99°)
OKLaboklab(95.4% -0.0351 0.1336)
OKLCHoklch(95.4% 0.138 104.7)
XYZxyz(77.4899, 87.9629, 33.6613)
Luminance0.8796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF581 #818AFE
analogous
#FEB681 #FEF581 #C8FE81
triadic
#FEF581 #81FEF5 #F581FE
tetradic
#FEF581 #81FEB6 #818AFE #FE81C8
square
#FEF581 #81FEB6 #818AFE #FE81C8
split-complementary
#FEF581 #81C8FE #B681FE
monochromatic
#FDEB08 #FEF044 #FEF581 #FEFABE #FFFDE1

Accessibility & contrast

On white

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

On black

18.59
#FEF581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF581
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF581#FFFFFF#000000##000000
##FEF5811.001.1318.5918.59
#FFFFFF1.131.0021.0021.00
#00000018.5921.001.001.00
##00000018.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE77
Deuteranopia (green-blind)
#FFF486
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef581;
/* rgb */ color: rgb(254, 245, 129);
/* oklch */ color: oklch(95.4% 0.138 104.7);
Tailwind
colors: {
  custom: {
    50: '#fff8a8',
    500: '#fef581',
    950: '#000000',
  },
}
SCSS
$custom: #fef581;
$custom-light: #fff8a8;
$custom-dark: #000000;
JSON
{
  "hex": "#fef581",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 129
  },
  "hsl": {
    "h": 55.68,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.954,
    "c": 0.13811,
    "h": 104.7
  },
  "luminance": 0.87961
}

Semantic roles & 50–950 ramp

primary
#FEF581
secondary
#4651DD
accent
#11E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF581

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

Preview Lab → · Contrast checker → · Palette generator →

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