#FEF962#FEF962

#FEF962 is a very light, vivid yellow. Relative luminance 0.897; OKLCH L 95.9% C 0.169 H 107.4°. Best body text is #000000 at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#FEF962
RGBrgb(254, 249, 98)
HSLhsl(58, 99%, 69%)
HSVhsv(58, 61%, 100%)
CMYKcmyk(0%, 2%, 61.4%, 0.4%)
CIE-LABlab(95.87, -16.20, 70.72)
CIE-LCHlch(95.87, 72.56, 102.90°)
OKLaboklab(95.89% -0.0504 0.1609)
OKLCHoklch(95.89% 0.169 107.4)
XYZxyz(76.9559, 89.7064, 24.8142)
Luminance0.8970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF962 #6267FE
analogous
#FEAB62 #FEF962 #B5FE62
triadic
#FEF962 #62FEF9 #F962FE
tetradic
#FEF962 #62FEAB #6267FE #FE62B5
square
#FEF962 #62FEAB #6267FE #FE62B5
split-complementary
#FEF962 #62B5FE #AB62FE
monochromatic
#E4DD01 #FEF725 #FEF962 #FEFB9F #FFFEDC

Accessibility & contrast

On white

1.11
#FEF962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.94
#FEF962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF962
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF962#FFFFFF#000000##000000
##FEF9621.001.1118.9418.94
#FFFFFF1.111.0021.0021.00
#00000018.9421.001.001.00
##00000018.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF04F
Deuteranopia (green-blind)
#FFF66B
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef962;
/* rgb */ color: rgb(254, 249, 98);
/* oklch */ color: oklch(95.9% 0.169 107.4);
Tailwind
colors: {
  custom: {
    50: '#fffb95',
    500: '#fef962',
    950: '#000000',
  },
}
SCSS
$custom: #fef962;
$custom-light: #fffb95;
$custom-dark: #000000;
JSON
{
  "hex": "#fef962",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 98
  },
  "hsl": {
    "h": 58.077,
    "s": 98.734,
    "l": 69.02
  },
  "oklch": {
    "l": 0.95885,
    "c": 0.1686,
    "h": 107.4
  },
  "luminance": 0.89704
}

Semantic roles & 50–950 ramp

primary
#FEF962
secondary
#2C31D8
accent
#07E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#19170E
muted
#87857F

Preview Lab

Preview with #FEF962

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

Preview Lab → · Contrast checker → · Palette generator →

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