#ECD97E#ECD97E

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

Color values

HEX#ECD97E
RGBrgb(236, 217, 126)
HSLhsl(50, 74%, 71%)
HSVhsv(50, 47%, 93%)
CMYKcmyk(0%, 8.1%, 46.6%, 7.5%)
CIE-LABlab(86.49, -5.41, 46.97)
CIE-LCHlch(86.49, 47.28, 96.57°)
OKLaboklab(88.17% -0.0155 0.1128)
OKLCHoklch(88.17% 0.114 97.8)
XYZxyz(63.1726, 68.9672, 29.7190)
Luminance0.6896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD97E #7E91EC
analogous
#ECA27E #ECD97E #C8EC7E
triadic
#ECD97E #7EECD9 #D97EEC
tetradic
#ECD97E #7EECA2 #7E91EC #EC7EC8
square
#ECD97E #7EECA2 #7E91EC #EC7EC8
split-complementary
#ECD97E #7EC8EC #A27EEC
monochromatic
#D1B21F #E4C949 #ECD97E #F4E9B3 #FBF7E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD97E#FFFFFF#000000##000000
##ECD97E1.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)
#E9D577
Deuteranopia (green-blind)
#EEDB82
Tritanopia (blue-blind)
#FBCDC3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd97e;
/* rgb */ color: rgb(236, 217, 126);
/* oklch */ color: oklch(88.2% 0.114 97.8);
Tailwind
colors: {
  custom: {
    50: '#f4e4a5',
    500: '#ecd97e',
    950: '#000000',
  },
}
SCSS
$custom: #ecd97e;
$custom-light: #f4e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd97e",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 126
  },
  "hsl": {
    "h": 49.636,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88167,
    "c": 0.11384,
    "h": 97.8
  },
  "luminance": 0.68965
}

Semantic roles & 50–950 ramp

primary
#ECD97E
secondary
#495EC5
accent
#31D60F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD97E

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

Preview Lab → · Contrast checker → · Palette generator →

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