#ECD99F#ECD99F

#ECD99F is a very light, moderate yellow. Relative luminance 0.700; OKLCH L 88.7% C 0.078 H 92.1°. Best body text is #000000 at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#ECD99F
RGBrgb(236, 217, 159)
HSLhsl(45, 67%, 77%)
HSVhsv(45, 33%, 93%)
CMYKcmyk(0%, 8.1%, 32.6%, 7.5%)
CIE-LABlab(86.98, -1.86, 31.00)
CIE-LCHlch(86.98, 31.05, 93.44°)
OKLaboklab(88.72% -0.0028 0.0775)
OKLCHoklch(88.72% 0.078 92.1)
XYZxyz(65.6638, 69.9637, 42.8396)
Luminance0.6996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD99F #9FB2EC
analogous
#ECB39F #ECD99F #D8EC9F
triadic
#ECD99F #9FECD9 #D99FEC
tetradic
#ECD99F #9FECB3 #9FB2EC #EC9FD8
square
#ECD99F #9FECB3 #9FB2EC #EC9FD8
split-complementary
#ECD99F #9FD8EC #B39FEC
monochromatic
#D8B139 #E2C56C #ECD99F #F6EDD2 #FAF5E5

Accessibility & contrast

On white

1.40
#ECD99F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.99
#ECD99F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD99F
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD99F#FFFFFF#000000##000000
##ECD99F1.001.4014.9914.99
#FFFFFF1.401.0021.0021.00
#00000014.9921.001.001.00
##00000014.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D79B
Deuteranopia (green-blind)
#EADCA1
Tritanopia (blue-blind)
#F8D0CA
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #ecd99f;
/* rgb */ color: rgb(236, 217, 159);
/* oklch */ color: oklch(88.7% 0.078 92.1);
Tailwind
colors: {
  custom: {
    50: '#f3e4bb',
    500: '#ecd99f',
    950: '#000000',
  },
}
SCSS
$custom: #ecd99f;
$custom-light: #f3e4bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd99f",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 159
  },
  "hsl": {
    "h": 45.195,
    "s": 66.957,
    "l": 77.451
  },
  "oklch": {
    "l": 0.88715,
    "c": 0.07758,
    "h": 92.1
  },
  "luminance": 0.69962
}

Semantic roles & 50–950 ramp

primary
#ECD99F
secondary
#677FC8
accent
#44CF17
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171512
muted
#858482

Preview Lab

Preview with #ECD99F

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

Preview Lab → · Contrast checker → · Palette generator →

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