#FFEF8B#FFEF8B

#FFEF8B is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.4% C 0.122 H 100.4°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#FFEF8B
RGBrgb(255, 239, 139)
HSLhsl(52, 100%, 77%)
HSVhsv(52, 45%, 100%)
CMYKcmyk(0%, 6.3%, 45.5%, 0%)
CIE-LABlab(93.82, -7.73, 50.09)
CIE-LCHlch(93.82, 50.68, 98.77°)
OKLaboklab(94.41% -0.022 0.1204)
OKLCHoklch(94.41% 0.122 100.4)
XYZxyz(76.7687, 84.8596, 36.7568)
Luminance0.8486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF8B #8B9BFF
analogous
#FFB58B #FFEF8B #D5FF8B
triadic
#FFEF8B #8BFFEF #EF8BFF
tetradic
#FFEF8B #8BFFB5 #8B9BFF #FF8BD5
square
#FFEF8B #8BFFB5 #8B9BFF #FF8BD5
split-complementary
#FFEF8B #8BD5FF #B58BFF
monochromatic
#FFDE11 #FFE74E #FFEF8B #FFF7C8 #FFFBE0

Accessibility & contrast

On white

1.17
#FFEF8B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.97
#FFEF8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEF8B
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEF8B#FFFFFF#000000##000000
##FFEF8B1.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE983
Deuteranopia (green-blind)
#FFF08F
Tritanopia (blue-blind)
#FFE2D7
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #ffef8b;
/* rgb */ color: rgb(255, 239, 139);
/* oklch */ color: oklch(94.4% 0.122 100.4);
Tailwind
colors: {
  custom: {
    50: '#fff4ae',
    500: '#ffef8b',
    950: '#000000',
  },
}
SCSS
$custom: #ffef8b;
$custom-light: #fff4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef8b",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 139
  },
  "hsl": {
    "h": 51.724,
    "s": 100,
    "l": 77.255
  },
  "oklch": {
    "l": 0.94408,
    "c": 0.12237,
    "h": 100.4
  },
  "luminance": 0.84857
}

Semantic roles & 50–950 ramp

primary
#FFEF8B
secondary
#4E62E0
accent
#20E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FFEF8B

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

Preview Lab → · Contrast checker → · Palette generator →

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