#ECD97D#ECD97D

#ECD97D is a very light, moderate yellow. Relative luminance 0.689; OKLCH L 88.2% C 0.115 H 98.0°. Best body text is #000000 at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#ECD97D
RGBrgb(236, 217, 125)
HSLhsl(50, 74%, 71%)
HSVhsv(50, 47%, 93%)
CMYKcmyk(0%, 8.1%, 47%, 7.5%)
CIE-LABlab(86.48, -5.50, 47.44)
CIE-LCHlch(86.48, 47.76, 96.62°)
OKLaboklab(88.15% -0.0159 0.1138)
OKLCHoklch(88.15% 0.115 98)
XYZxyz(63.1084, 68.9415, 29.3808)
Luminance0.6894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD97D #7D90EC
analogous
#ECA17D #ECD97D #C7EC7D
triadic
#ECD97D #7DECD9 #D97DEC
tetradic
#ECD97D #7DECA1 #7D90EC #EC7DC7
square
#ECD97D #7DECA1 #7D90EC #EC7DC7
split-complementary
#ECD97D #7DC7EC #A17DEC
monochromatic
#D0B21E #E4C948 #ECD97D #F4E9B2 #FBF7E4

Accessibility & contrast

On white

1.42
#ECD97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.79
#ECD97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD97D
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD97D#FFFFFF#000000##000000
##ECD97D1.001.4214.7914.79
#FFFFFF1.421.0021.0021.00
#00000014.7921.001.001.00
##00000014.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D575
Deuteranopia (green-blind)
#EEDB81
Tritanopia (blue-blind)
#FBCDC3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd97d;
/* rgb */ color: rgb(236, 217, 125);
/* oklch */ color: oklch(88.2% 0.115 98.0);
Tailwind
colors: {
  custom: {
    50: '#f4e4a4',
    500: '#ecd97d',
    950: '#000000',
  },
}
SCSS
$custom: #ecd97d;
$custom-light: #f4e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd97d",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 49.73,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.88153,
    "c": 0.11486,
    "h": 98
  },
  "luminance": 0.68939
}

Semantic roles & 50–950 ramp

primary
#ECD97D
secondary
#485DC5
accent
#31D70F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD97D

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

Preview Lab → · Contrast checker → · Palette generator →

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