#FEF77B#FEF77B

#FEF77B is a very light, vivid yellow. Relative luminance 0.890; OKLCH L 95.7% C 0.146 H 105.9°. Best body text is #000000 at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#FEF77B
RGBrgb(254, 247, 123)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 52%, 100%)
CMYKcmyk(0%, 2.8%, 51.6%, 0.4%)
CIE-LABlab(95.59, -13.46, 59.67)
CIE-LCHlch(95.59, 61.17, 102.71°)
OKLaboklab(95.73% -0.0399 0.1402)
OKLCHoklch(95.73% 0.146 105.9)
XYZxyz(77.7111, 89.0247, 31.8250)
Luminance0.8902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF77B #7B82FE
analogous
#FEB67B #FEF77B #C4FE7B
triadic
#FEF77B #7BFEF7 #F77BFE
tetradic
#FEF77B #7BFEB6 #7B82FE #FE7BC4
square
#FEF77B #7BFEB6 #7B82FE #FE7BC4
split-complementary
#FEF77B #7BC4FE #B67BFE
monochromatic
#FDEF02 #FEF33E #FEF77B #FEFBB8 #FFFDE1

Accessibility & contrast

On white

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

On black

18.80
#FEF77B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF77B
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF77B#FFFFFF#000000##000000
##FEF77B1.001.1218.8018.80
#FFFFFF1.121.0021.0021.00
#00000018.8021.001.001.00
##00000018.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF6F
Deuteranopia (green-blind)
#FFF581
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef77b;
/* rgb */ color: rgb(254, 247, 123);
/* oklch */ color: oklch(95.7% 0.146 105.9);
Tailwind
colors: {
  custom: {
    50: '#fff9a4',
    500: '#fef77b',
    950: '#000000',
  },
}
SCSS
$custom: #fef77b;
$custom-light: #fff9a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef77b",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 123
  },
  "hsl": {
    "h": 56.794,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.95733,
    "c": 0.14575,
    "h": 105.9
  },
  "luminance": 0.89022
}

Semantic roles & 50–950 ramp

primary
#FEF77B
secondary
#4149DC
accent
#0CE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF77B

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

Preview Lab → · Contrast checker → · Palette generator →

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