#ECDD98#ECDD98

#ECDD98 is a very light, moderate yellow. Relative luminance 0.718; OKLCH L 89.4% C 0.089 H 97.4°. Best body text is #000000 at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#ECDD98
RGBrgb(236, 221, 152)
HSLhsl(49, 69%, 76%)
HSVhsv(49, 36%, 93%)
CMYKcmyk(0%, 6.4%, 35.6%, 7.5%)
CIE-LABlab(87.88, -4.73, 35.77)
CIE-LCHlch(87.88, 36.08, 97.53°)
OKLaboklab(89.39% -0.0115 0.0886)
OKLCHoklch(89.39% 0.089 97.4)
XYZxyz(66.1171, 71.8146, 40.0784)
Luminance0.7181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECDD98 #98A7EC
analogous
#ECB398 #ECDD98 #D1EC98
triadic
#ECDD98 #98ECDD #DD98EC
tetradic
#ECDD98 #98ECB3 #98A7EC #EC98D1
square
#ECDD98 #98ECB3 #98A7EC #EC98D1
split-complementary
#ECDD98 #98D1EC #B398EC
monochromatic
#D9BB31 #E2CC64 #ECDD98 #F6EECC #FAF6E5

Accessibility & contrast

On white

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

On black

15.36
#ECDD98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECDD98
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECDD98#FFFFFF#000000##000000
##ECDD981.001.3715.3615.36
#FFFFFF1.371.0021.0021.00
#00000015.3621.001.001.00
##00000015.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD993
Deuteranopia (green-blind)
#EEDF9A
Tritanopia (blue-blind)
#F8D3CB
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #ecdd98;
/* rgb */ color: rgb(236, 221, 152);
/* oklch */ color: oklch(89.4% 0.089 97.4);
Tailwind
colors: {
  custom: {
    50: '#f3e7b7',
    500: '#ecdd98',
    950: '#000000',
  },
}
SCSS
$custom: #ecdd98;
$custom-light: #f3e7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecdd98",
  "rgb": {
    "r": 236,
    "g": 221,
    "b": 152
  },
  "hsl": {
    "h": 49.286,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.89389,
    "c": 0.08929,
    "h": 97.4
  },
  "luminance": 0.71813
}

Semantic roles & 50–950 ramp

primary
#ECDD98
secondary
#6173C8
accent
#36D115
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #ECDD98

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

Preview Lab → · Contrast checker → · Palette generator →

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