#FFEF8E#FFEF8E

#FFEF8E is a very light, moderate yellow. Relative luminance 0.849; OKLCH L 94.5% C 0.119 H 100.1°. Best body text is #000000 at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#FFEF8E
RGBrgb(255, 239, 142)
HSLhsl(52, 100%, 78%)
HSVhsv(52, 44%, 100%)
CMYKcmyk(0%, 6.3%, 44.3%, 0%)
CIE-LABlab(93.86, -7.45, 48.69)
CIE-LCHlch(93.86, 49.26, 98.70°)
OKLaboklab(94.45% -0.0209 0.1175)
OKLCHoklch(94.45% 0.119 100.1)
XYZxyz(76.9909, 84.9485, 37.9270)
Luminance0.8495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF8E #8E9EFF
analogous
#FFB68E #FFEF8E #D7FF8E
triadic
#FFEF8E #8EFFEF #EF8EFF
tetradic
#FFEF8E #8EFFB6 #8E9EFF #FF8ED7
square
#FFEF8E #8EFFB6 #8E9EFF #FF8ED7
split-complementary
#FFEF8E #8ED7FF #B68EFF
monochromatic
#FFDE14 #FFE651 #FFEF8E #FFF8CB #FFFBE0

Accessibility & contrast

On white

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

On black

17.99
#FFEF8E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEF8E
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEF8E#FFFFFF#000000##000000
##FFEF8E1.001.1717.9917.99
#FFFFFF1.171.0021.0021.00
#00000017.9921.001.001.00
##00000017.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA86
Deuteranopia (green-blind)
#FFF092
Tritanopia (blue-blind)
#FFE3D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #ffef8e;
/* rgb */ color: rgb(255, 239, 142);
/* oklch */ color: oklch(94.5% 0.119 100.1);
Tailwind
colors: {
  custom: {
    50: '#fff4b0',
    500: '#ffef8e',
    950: '#000000',
  },
}
SCSS
$custom: #ffef8e;
$custom-light: #fff4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef8e",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 142
  },
  "hsl": {
    "h": 51.504,
    "s": 100,
    "l": 77.843
  },
  "oklch": {
    "l": 0.94451,
    "c": 0.1193,
    "h": 100.1
  },
  "luminance": 0.84946
}

Semantic roles & 50–950 ramp

primary
#FFEF8E
secondary
#5165E0
accent
#20E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #FFEF8E

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

Preview Lab → · Contrast checker → · Palette generator →

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