#ECDD8A#ECDD8A

#ECDD8A is a very light, moderate yellow. Relative luminance 0.714; OKLCH L 89.2% C 0.105 H 99.3°. Best body text is #000000 at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#ECDD8A
RGBrgb(236, 221, 138)
HSLhsl(51, 72%, 73%)
HSVhsv(51, 42%, 93%)
CMYKcmyk(0%, 6.4%, 41.5%, 7.5%)
CIE-LABlab(87.67, -6.26, 42.54)
CIE-LCHlch(87.67, 42.99, 98.37°)
OKLaboklab(89.16% -0.0169 0.1035)
OKLCHoklch(89.16% 0.105 99.3)
XYZxyz(65.0374, 71.3828, 34.3921)
Luminance0.7138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECDD8A #8A99EC
analogous
#ECAC8A #ECDD8A #CAEC8A
triadic
#ECDD8A #8AECDD #DD8AEC
tetradic
#ECDD8A #8AECAC #8A99EC #EC8ACA
square
#ECDD8A #8AECAC #8A99EC #EC8ACA
split-complementary
#ECDD8A #8ACAEC #AC8AEC
monochromatic
#D8BD23 #E3CE55 #ECDD8A #F5ECBF #FBF7E5

Accessibility & contrast

On white

1.37
#ECDD8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.28
#ECDD8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECDD8A
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECDD8A#FFFFFF#000000##000000
##ECDD8A1.001.3715.2815.28
#FFFFFF1.371.0021.0021.00
#00000015.2821.001.001.00
##00000015.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD884
Deuteranopia (green-blind)
#F0DE8D
Tritanopia (blue-blind)
#FAD2C9
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #ecdd8a;
/* rgb */ color: rgb(236, 221, 138);
/* oklch */ color: oklch(89.2% 0.105 99.3);
Tailwind
colors: {
  custom: {
    50: '#f3e7ad',
    500: '#ecdd8a',
    950: '#000000',
  },
}
SCSS
$custom: #ecdd8a;
$custom-light: #f3e7ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ecdd8a",
  "rgb": {
    "r": 236,
    "g": 221,
    "b": 138
  },
  "hsl": {
    "h": 50.816,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.89156,
    "c": 0.1049,
    "h": 99.3
  },
  "luminance": 0.71381
}

Semantic roles & 50–950 ramp

primary
#ECDD8A
secondary
#5465C7
accent
#2FD411
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #ECDD8A

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

Preview Lab → · Contrast checker → · Palette generator →

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