#ECD98A#ECD98A

#ECD98A is a very light, moderate yellow. Relative luminance 0.693; OKLCH L 88.3% C 0.101 H 96.3°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#ECD98A
RGBrgb(236, 217, 138)
HSLhsl(48, 72%, 73%)
HSVhsv(48, 42%, 93%)
CMYKcmyk(0%, 8.1%, 41.5%, 7.5%)
CIE-LABlab(86.65, -4.23, 41.24)
CIE-LCHlch(86.65, 41.45, 95.85°)
OKLaboklab(88.35% -0.011 0.1006)
OKLCHoklch(88.35% 0.101 96.3)
XYZxyz(63.9939, 69.2957, 34.0443)
Luminance0.6929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD98A #8A9DEC
analogous
#ECA88A #ECD98A #CEEC8A
triadic
#ECD98A #8AECD9 #D98AEC
tetradic
#ECD98A #8AECA8 #8A9DEC #EC8ACE
square
#ECD98A #8AECA8 #8A9DEC #EC8ACE
split-complementary
#ECD98A #8ACEEC #A88AEC
monochromatic
#D8B523 #E3C855 #ECD98A #F5EABF #FBF6E5

Accessibility & contrast

On white

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

On black

14.86
#ECD98A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD98A
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD98A#FFFFFF#000000##000000
##ECD98A1.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D584
Deuteranopia (green-blind)
#EDDC8D
Tritanopia (blue-blind)
#FACEC5
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd98a;
/* rgb */ color: rgb(236, 217, 138);
/* oklch */ color: oklch(88.3% 0.101 96.3);
Tailwind
colors: {
  custom: {
    50: '#f4e4ad',
    500: '#ecd98a',
    950: '#000000',
  },
}
SCSS
$custom: #ecd98a;
$custom-light: #f4e4ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd98a",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 138
  },
  "hsl": {
    "h": 48.367,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.88348,
    "c": 0.10117,
    "h": 96.3
  },
  "luminance": 0.69294
}

Semantic roles & 50–950 ramp

primary
#ECD98A
secondary
#546AC7
accent
#37D411
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #ECD98A

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

Preview Lab → · Contrast checker → · Palette generator →

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