#ECDE98#ECDE98

#ECDE98 is a very light, moderate yellow. Relative luminance 0.723; OKLCH L 89.6% C 0.090 H 98.2°. Best body text is #000000 at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#ECDE98
RGBrgb(236, 222, 152)
HSLhsl(50, 69%, 76%)
HSVhsv(50, 36%, 93%)
CMYKcmyk(0%, 5.9%, 35.6%, 7.5%)
CIE-LABlab(88.13, -5.24, 36.10)
CIE-LCHlch(88.13, 36.48, 98.25°)
OKLaboklab(89.59% -0.0129 0.0893)
OKLCHoklch(89.59% 0.09 98.2)
XYZxyz(66.3819, 72.3443, 40.1667)
Luminance0.7234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECDE98 #98A6EC
analogous
#ECB498 #ECDE98 #D0EC98
triadic
#ECDE98 #98ECDE #DE98EC
tetradic
#ECDE98 #98ECB4 #98A6EC #EC98D0
square
#ECDE98 #98ECB4 #98A6EC #EC98D0
split-complementary
#ECDE98 #98D0EC #B498EC
monochromatic
#D9BD31 #E2CD64 #ECDE98 #F6EFCC #FAF7E5

Accessibility & contrast

On white

1.36
#ECDE98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.47
#ECDE98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECDE98
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECDE98#FFFFFF#000000##000000
##ECDE981.001.3615.4715.47
#FFFFFF1.361.0021.0021.00
#00000015.4721.001.001.00
##00000015.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBDA93
Deuteranopia (green-blind)
#EFDF9B
Tritanopia (blue-blind)
#F8D4CC
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #ecde98;
/* rgb */ color: rgb(236, 222, 152);
/* oklch */ color: oklch(89.6% 0.090 98.2);
Tailwind
colors: {
  custom: {
    50: '#f3e8b7',
    500: '#ecde98',
    950: '#000000',
  },
}
SCSS
$custom: #ecde98;
$custom-light: #f3e8b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecde98",
  "rgb": {
    "r": 236,
    "g": 222,
    "b": 152
  },
  "hsl": {
    "h": 50,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.8959,
    "c": 0.09025,
    "h": 98.2
  },
  "luminance": 0.72342
}

Semantic roles & 50–950 ramp

primary
#ECDE98
secondary
#6172C8
accent
#34D115
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #ECDE98

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

Preview Lab → · Contrast checker → · Palette generator →

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