#ECD97A#ECD97A

#ECD97A is a very light, moderate yellow. Relative luminance 0.689; OKLCH L 88.1% C 0.118 H 98.3°. Best body text is #000000 at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#ECD97A
RGBrgb(236, 217, 122)
HSLhsl(50, 75%, 70%)
HSVhsv(50, 48%, 93%)
CMYKcmyk(0%, 8.1%, 48.3%, 7.5%)
CIE-LABlab(86.44, -5.78, 48.85)
CIE-LCHlch(86.44, 49.19, 96.74°)
OKLaboklab(88.11% -0.017 0.1167)
OKLCHoklch(88.11% 0.118 98.3)
XYZxyz(62.9196, 68.8660, 28.3867)
Luminance0.6886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD97A #7A8DEC
analogous
#ECA07A #ECD97A #C6EC7A
triadic
#ECD97A #7AECD9 #D97AEC
tetradic
#ECD97A #7AECA0 #7A8DEC #EC7AC6
square
#ECD97A #7AECA0 #7A8DEC #EC7AC6
split-complementary
#ECD97A #7AC6EC #A07AEC
monochromatic
#CEB11D #E4CA44 #ECD97A #F4E8B0 #FBF7E4

Accessibility & contrast

On white

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

On black

14.77
#ECD97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD97A
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD97A#FFFFFF#000000##000000
##ECD97A1.001.4214.7714.77
#FFFFFF1.421.0021.0021.00
#00000014.7721.001.001.00
##00000014.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecd97a;
/* rgb */ color: rgb(236, 217, 122);
/* oklch */ color: oklch(88.1% 0.118 98.3);
Tailwind
colors: {
  custom: {
    50: '#f4e4a2',
    500: '#ecd97a',
    950: '#000000',
  },
}
SCSS
$custom: #ecd97a;
$custom-light: #f4e4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd97a",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 122
  },
  "hsl": {
    "h": 50,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.88111,
    "c": 0.1179,
    "h": 98.3
  },
  "luminance": 0.68864
}

Semantic roles & 50–950 ramp

primary
#ECD97A
secondary
#455AC5
accent
#30D70E
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD97A

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

Preview Lab → · Contrast checker → · Palette generator →

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