#FFEF9B#FFEF9B

#FFEF9B is a very light, moderate yellow. Relative luminance 0.854; OKLCH L 94.7% C 0.105 H 98.8°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#FFEF9B
RGBrgb(255, 239, 155)
HSLhsl(50, 100%, 80%)
HSVhsv(50, 39%, 100%)
CMYKcmyk(0%, 6.3%, 39.2%, 0%)
CIE-LABlab(94.04, -6.14, 42.57)
CIE-LCHlch(94.04, 43.01, 98.21°)
OKLaboklab(94.65% -0.0161 0.1043)
OKLCHoklch(94.65% 0.105 98.8)
XYZxyz(78.0244, 85.3619, 43.3704)
Luminance0.8536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF9B #9BABFF
analogous
#FFBD9B #FFEF9B #DDFF9B
triadic
#FFEF9B #9BFFEF #EF9BFF
tetradic
#FFEF9B #9BFFBD #9BABFF #FF9BDD
square
#FFEF9B #9BFFBD #9BABFF #FF9BDD
split-complementary
#FFEF9B #9BDDFF #BD9BFF
monochromatic
#FFDB21 #FFE55E #FFEF9B #FFF9D8 #FFFAE0

Accessibility & contrast

On white

1.16
#FFEF9B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.07
#FFEF9B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEF9B
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEF9B#FFFFFF#000000##000000
##FFEF9B1.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEEA95
Deuteranopia (green-blind)
#FFF19E
Tritanopia (blue-blind)
#FFE4DA
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #ffef9b;
/* rgb */ color: rgb(255, 239, 155);
/* oklch */ color: oklch(94.7% 0.105 98.8);
Tailwind
colors: {
  custom: {
    50: '#fff4b9',
    500: '#ffef9b',
    950: '#000000',
  },
}
SCSS
$custom: #ffef9b;
$custom-light: #fff4b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef9b",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 155
  },
  "hsl": {
    "h": 50.4,
    "s": 100,
    "l": 80.392
  },
  "oklch": {
    "l": 0.9465,
    "c": 0.10548,
    "h": 98.8
  },
  "luminance": 0.8536
}

Semantic roles & 50–950 ramp

primary
#FFEF9B
secondary
#5C71E2
accent
#25E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFEF9B

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

Preview Lab → · Contrast checker → · Palette generator →

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