#ECD98E#ECD98E

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

Color values

HEX#ECD98E
RGBrgb(236, 217, 142)
HSLhsl(48, 71%, 74%)
HSVhsv(48, 40%, 93%)
CMYKcmyk(0%, 8.1%, 39.8%, 7.5%)
CIE-LABlab(86.71, -3.81, 39.30)
CIE-LCHlch(86.71, 39.49, 95.53°)
OKLaboklab(88.41% -0.0095 0.0963)
OKLCHoklch(88.41% 0.097 95.6)
XYZxyz(64.2888, 69.4137, 35.5976)
Luminance0.6941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD98E #8EA1EC
analogous
#ECAA8E #ECD98E #D0EC8E
triadic
#ECD98E #8EECD9 #D98EEC
tetradic
#ECD98E #8EECAA #8EA1EC #EC8ED0
square
#ECD98E #8EECAA #8EA1EC #EC8ED0
split-complementary
#ECD98E #8ED0EC #AA8EEC
monochromatic
#DAB625 #E3C75A #ECD98E #F5EBC2 #FBF6E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD98E#FFFFFF#000000##000000
##ECD98E1.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)
#E7D588
Deuteranopia (green-blind)
#EDDC91
Tritanopia (blue-blind)
#F9CEC6
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd98e;
/* rgb */ color: rgb(236, 217, 142);
/* oklch */ color: oklch(88.4% 0.097 95.6);
Tailwind
colors: {
  custom: {
    50: '#f3e4b0',
    500: '#ecd98e',
    950: '#000000',
  },
}
SCSS
$custom: #ecd98e;
$custom-light: #f3e4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd98e",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 142
  },
  "hsl": {
    "h": 47.872,
    "s": 71.212,
    "l": 74.118
  },
  "oklch": {
    "l": 0.88413,
    "c": 0.09681,
    "h": 95.6
  },
  "luminance": 0.69412
}

Semantic roles & 50–950 ramp

primary
#ECD98E
secondary
#576EC7
accent
#39D312
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #ECD98E

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

Preview Lab → · Contrast checker → · Palette generator →

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