#FEF76B#FEF76B

#FEF76B is a very light, vivid yellow. Relative luminance 0.887; OKLCH L 95.6% C 0.160 H 106.4°. Best body text is #000000 at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#FEF76B
RGBrgb(254, 247, 107)
HSLhsl(57, 99%, 71%)
HSVhsv(57, 58%, 100%)
CMYKcmyk(0%, 2.8%, 57.9%, 0.4%)
CIE-LABlab(95.44, -14.65, 66.52)
CIE-LCHlch(95.44, 68.11, 102.42°)
OKLaboklab(95.56% -0.045 0.1532)
OKLCHoklch(95.56% 0.16 106.4)
XYZxyz(76.7901, 88.6563, 26.9744)
Luminance0.8865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF76B #6B72FE
analogous
#FEAD6B #FEF76B #BBFE6B
triadic
#FEF76B #6BFEF7 #F76BFE
tetradic
#FEF76B #6BFEAD #6B72FE #FE6BBB
square
#FEF76B #6BFEAD #6B72FE #FE6BBB
split-complementary
#FEF76B #6BBBFE #AD6BFE
monochromatic
#EDE202 #FEF42E #FEF76B #FEFAA8 #FFFDE1

Accessibility & contrast

On white

1.12
#FEF76B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.73
#FEF76B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF76B
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF76B#FFFFFF#000000##000000
##FEF76B1.001.1218.7318.73
#FFFFFF1.121.0021.0021.00
#00000018.7321.001.001.00
##00000018.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF5C
Deuteranopia (green-blind)
#FFF573
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef76b;
/* rgb */ color: rgb(254, 247, 107);
/* oklch */ color: oklch(95.6% 0.160 106.4);
Tailwind
colors: {
  custom: {
    50: '#fff99a',
    500: '#fef76b',
    950: '#000000',
  },
}
SCSS
$custom: #fef76b;
$custom-light: #fff99a;
$custom-dark: #000000;
JSON
{
  "hex": "#fef76b",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 107
  },
  "hsl": {
    "h": 57.143,
    "s": 98.658,
    "l": 70.784
  },
  "oklch": {
    "l": 0.9556,
    "c": 0.15963,
    "h": 106.4
  },
  "luminance": 0.88654
}

Semantic roles & 50–950 ramp

primary
#FEF76B
secondary
#333BDA
accent
#0BE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FEF76B

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

Preview Lab → · Contrast checker → · Palette generator →

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