#FFEC8D#FFEC8D

#FFEC8D is a very light, moderate yellow. Relative luminance 0.832; OKLCH L 93.8% C 0.118 H 98.3°. Best body text is #000000 at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#FFEC8D
RGBrgb(255, 236, 141)
HSLhsl(50, 100%, 78%)
HSVhsv(50, 45%, 100%)
CMYKcmyk(0%, 7.5%, 44.7%, 0%)
CIE-LABlab(93.09, -6.05, 48.22)
CIE-LCHlch(93.09, 48.60, 97.15°)
OKLaboklab(93.84% -0.017 0.1163)
OKLCHoklch(93.84% 0.118 98.3)
XYZxyz(76.0451, 83.1766, 37.2431)
Luminance0.8317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC8D #8DA0FF
analogous
#FFB38D #FFEC8D #D9FF8D
triadic
#FFEC8D #8DFFEC #EC8DFF
tetradic
#FFEC8D #8DFFB3 #8DA0FF #FF8DD9
square
#FFEC8D #8DFFB3 #8DA0FF #FF8DD9
split-complementary
#FFEC8D #8DD9FF #B38DFF
monochromatic
#FFD813 #FFE250 #FFEC8D #FFF6CA #FFFAE0

Accessibility & contrast

On white

1.19
#FFEC8D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.63
#FFEC8D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC8D
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC8D#FFFFFF#000000##000000
##FFEC8D1.001.1917.6317.63
#FFFFFF1.191.0021.0021.00
#00000017.6321.001.001.00
##00000017.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE785
Deuteranopia (green-blind)
#FFEE91
Tritanopia (blue-blind)
#FFE0D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec8d;
/* rgb */ color: rgb(255, 236, 141);
/* oklch */ color: oklch(93.8% 0.118 98.3);
Tailwind
colors: {
  custom: {
    50: '#fff2b0',
    500: '#ffec8d',
    950: '#000000',
  },
}
SCSS
$custom: #ffec8d;
$custom-light: #fff2b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec8d",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 141
  },
  "hsl": {
    "h": 50,
    "s": 100,
    "l": 77.647
  },
  "oklch": {
    "l": 0.93837,
    "c": 0.11755,
    "h": 98.3
  },
  "luminance": 0.83174
}

Semantic roles & 50–950 ramp

primary
#FFEC8D
secondary
#5068E0
accent
#26E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #FFEC8D

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

Preview Lab → · Contrast checker → · Palette generator →

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