#ECD997#ECD997

#ECD997 is a very light, moderate yellow. Relative luminance 0.697; OKLCH L 88.6% C 0.087 H 94.0°. Best body text is #000000 at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#ECD997
RGBrgb(236, 217, 151)
HSLhsl(47, 69%, 76%)
HSVhsv(47, 36%, 93%)
CMYKcmyk(0%, 8.1%, 36%, 7.5%)
CIE-LABlab(86.85, -2.81, 34.92)
CIE-LCHlch(86.85, 35.03, 94.60°)
OKLaboklab(88.57% -0.006 0.0865)
OKLCHoklch(88.57% 0.087 94)
XYZxyz(64.9920, 69.6950, 39.3011)
Luminance0.6969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD997 #97AAEC
analogous
#ECAE97 #ECD997 #D4EC97
triadic
#ECD997 #97ECD9 #D997EC
tetradic
#ECD997 #97ECAE #97AAEC #EC97D4
square
#ECD997 #97ECAE #97AAEC #EC97D4
split-complementary
#ECD997 #97D4EC #AE97EC
monochromatic
#D9B330 #E3C663 #ECD997 #F5ECCB #FAF6E5

Accessibility & contrast

On white

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

On black

14.94
#ECD997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD997
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD997#FFFFFF#000000##000000
##ECD9971.001.4114.9414.94
#FFFFFF1.411.0021.0021.00
#00000014.9421.001.001.00
##00000014.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D692
Deuteranopia (green-blind)
#EBDC99
Tritanopia (blue-blind)
#F9CFC8
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd997;
/* rgb */ color: rgb(236, 217, 151);
/* oklch */ color: oklch(88.6% 0.087 94.0);
Tailwind
colors: {
  custom: {
    50: '#f3e4b6',
    500: '#ecd997',
    950: '#000000',
  },
}
SCSS
$custom: #ecd997;
$custom-light: #f3e4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd997",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 46.588,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.88568,
    "c": 0.08675,
    "h": 94
  },
  "luminance": 0.69693
}

Semantic roles & 50–950 ramp

primary
#ECD997
secondary
#6077C8
accent
#3FD114
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #ECD997

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

Preview Lab → · Contrast checker → · Palette generator →

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