#ECDD7E#ECDD7E

#ECDD7E is a very light, moderate yellow. Relative luminance 0.711; OKLCH L 89.0% C 0.118 H 100.5°. Best body text is #000000 at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#ECDD7E
RGBrgb(236, 221, 126)
HSLhsl(52, 74%, 71%)
HSVhsv(52, 47%, 93%)
CMYKcmyk(0%, 6.4%, 46.6%, 7.5%)
CIE-LABlab(87.51, -7.43, 48.23)
CIE-LCHlch(87.51, 48.80, 98.76°)
OKLaboklab(88.98% -0.0214 0.1156)
OKLCHoklch(88.98% 0.118 100.5)
XYZxyz(64.2161, 71.0543, 30.0668)
Luminance0.7105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECDD7E #7E8DEC
analogous
#ECA67E #ECDD7E #C4EC7E
triadic
#ECDD7E #7EECDD #DD7EEC
tetradic
#ECDD7E #7EECA6 #7E8DEC #EC7EC4
square
#ECDD7E #7EECA6 #7E8DEC #EC7EC4
split-complementary
#ECDD7E #7EC4EC #A67EEC
monochromatic
#D1B91F #E4CF49 #ECDD7E #F4EBB3 #FBF8E4

Accessibility & contrast

On white

1.38
#ECDD7E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.21
#ECDD7E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECDD7E
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECDD7E#FFFFFF#000000##000000
##ECDD7E1.001.3815.2115.21
#FFFFFF1.381.0021.0021.00
#00000015.2121.001.001.00
##00000015.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD876
Deuteranopia (green-blind)
#F1DE82
Tritanopia (blue-blind)
#FBD1C6
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #ecdd7e;
/* rgb */ color: rgb(236, 221, 126);
/* oklch */ color: oklch(89.0% 0.118 100.5);
Tailwind
colors: {
  custom: {
    50: '#f4e7a5',
    500: '#ecdd7e',
    950: '#000000',
  },
}
SCSS
$custom: #ecdd7e;
$custom-light: #f4e7a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ecdd7e",
  "rgb": {
    "r": 236,
    "g": 221,
    "b": 126
  },
  "hsl": {
    "h": 51.818,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88978,
    "c": 0.11754,
    "h": 100.5
  },
  "luminance": 0.71052
}

Semantic roles & 50–950 ramp

primary
#ECDD7E
secondary
#495AC5
accent
#2AD60F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #ECDD7E

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

Preview Lab → · Contrast checker → · Palette generator →

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