#ECD98D#ECD98D

#ECD98D is a very light, moderate yellow. Relative luminance 0.694; OKLCH L 88.4% C 0.098 H 95.8°. Best body text is #000000 at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#ECD98D
RGBrgb(236, 217, 141)
HSLhsl(48, 71%, 74%)
HSVhsv(48, 40%, 93%)
CMYKcmyk(0%, 8.1%, 40.3%, 7.5%)
CIE-LABlab(86.69, -3.91, 39.79)
CIE-LCHlch(86.69, 39.98, 95.62°)
OKLaboklab(88.4% -0.0099 0.0974)
OKLCHoklch(88.4% 0.098 95.8)
XYZxyz(64.2141, 69.3838, 35.2040)
Luminance0.6938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD98D #8DA0EC
analogous
#ECAA8D #ECD98D #D0EC8D
triadic
#ECD98D #8DECD9 #D98DEC
tetradic
#ECD98D #8DECAA #8DA0EC #EC8DD0
square
#ECD98D #8DECAA #8DA0EC #EC8DD0
split-complementary
#ECD98D #8DD0EC #AA8DEC
monochromatic
#DAB624 #E3C859 #ECD98D #F5EAC1 #FBF6E5

Accessibility & contrast

On white

1.41
#ECD98D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.88
#ECD98D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD98D
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD98D#FFFFFF#000000##000000
##ECD98D1.001.4114.8814.88
#FFFFFF1.411.0021.0021.00
#00000014.8821.001.001.00
##00000014.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D587
Deuteranopia (green-blind)
#EDDC90
Tritanopia (blue-blind)
#FACEC6
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd98d;
/* rgb */ color: rgb(236, 217, 141);
/* oklch */ color: oklch(88.4% 0.098 95.8);
Tailwind
colors: {
  custom: {
    50: '#f3e4af',
    500: '#ecd98d',
    950: '#000000',
  },
}
SCSS
$custom: #ecd98d;
$custom-light: #f3e4af;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd98d",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 141
  },
  "hsl": {
    "h": 48,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.88397,
    "c": 0.0979,
    "h": 95.8
  },
  "luminance": 0.69382
}

Semantic roles & 50–950 ramp

primary
#ECD98D
secondary
#566DC7
accent
#39D312
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #ECD98D

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

Preview Lab → · Contrast checker → · Palette generator →

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