#FEF986#FEF986

#FEF986 is a very light, vivid yellow. Relative luminance 0.905; OKLCH L 96.3% C 0.137 H 106.5°. Best body text is #000000 at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#FEF986
RGBrgb(254, 249, 134)
HSLhsl(58, 98%, 76%)
HSVhsv(58, 47%, 100%)
CMYKcmyk(0%, 2%, 47.2%, 0.4%)
CIE-LABlab(96.22, -13.50, 55.37)
CIE-LCHlch(96.22, 56.99, 103.70°)
OKLaboklab(96.27% -0.039 0.1317)
OKLCHoklch(96.27% 0.137 106.5)
XYZxyz(79.0536, 90.5455, 35.8623)
Luminance0.9054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF986 #868BFE
analogous
#FEBD86 #FEF986 #C7FE86
triadic
#FEF986 #86FEF9 #F986FE
tetradic
#FEF986 #86FEBD #868BFE #FE86C7
square
#FEF986 #86FEBD #868BFE #FE86C7
split-complementary
#FEF986 #86C7FE #BD86FE
monochromatic
#FDF30D #FDF649 #FEF986 #FFFCC3 #FFFDE1

Accessibility & contrast

On white

1.10
#FEF986 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.11
#FEF986 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF986
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF986#FFFFFF#000000##000000
##FEF9861.001.1019.1119.11
#FFFFFF1.101.0021.0021.00
#00000019.1121.001.001.00
##00000019.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF17C
Deuteranopia (green-blind)
#FFF78B
Tritanopia (blue-blind)
#FFECDE
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef986;
/* rgb */ color: rgb(254, 249, 134);
/* oklch */ color: oklch(96.3% 0.137 106.5);
Tailwind
colors: {
  custom: {
    50: '#fffbab',
    500: '#fef986',
    950: '#000000',
  },
}
SCSS
$custom: #fef986;
$custom-light: #fffbab;
$custom-dark: #000000;
JSON
{
  "hex": "#fef986",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 134
  },
  "hsl": {
    "h": 57.5,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.96274,
    "c": 0.13737,
    "h": 106.5
  },
  "luminance": 0.90543
}

Semantic roles & 50–950 ramp

primary
#FEF986
secondary
#4A51DE
accent
#0AE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF986

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

Preview Lab → · Contrast checker → · Palette generator →

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