#ECD972#ECD972

#ECD972 is a very light, vivid yellow. Relative luminance 0.687; OKLCH L 88.0% C 0.126 H 99.1°. Best body text is #000000 at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#ECD972
RGBrgb(236, 217, 114)
HSLhsl(51, 76%, 69%)
HSVhsv(51, 52%, 93%)
CMYKcmyk(0%, 8.1%, 51.7%, 7.5%)
CIE-LABlab(86.34, -6.47, 52.56)
CIE-LCHlch(86.34, 52.96, 97.02°)
OKLaboklab(88.01% -0.0198 0.1242)
OKLCHoklch(88.01% 0.126 99.1)
XYZxyz(62.4442, 68.6759, 25.8828)
Luminance0.6867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD972 #7285EC
analogous
#EC9C72 #ECD972 #C2EC72
triadic
#ECD972 #72ECD9 #D972EC
tetradic
#ECD972 #72EC9C #7285EC #EC72C2
square
#ECD972 #72EC9C #7285EC #EC72C2
split-complementary
#ECD972 #72C2EC #9C72EC
monochromatic
#C9AE1B #E5CA3C #ECD972 #F3E8A8 #FBF6DE

Accessibility & contrast

On white

1.43
#ECD972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.73
#ECD972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD972
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD972#FFFFFF#000000##000000
##ECD9721.001.4314.7314.73
#FFFFFF1.431.0021.0021.00
#00000014.7321.001.001.00
##00000014.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD469
Deuteranopia (green-blind)
#EFDB77
Tritanopia (blue-blind)
#FCCCC1
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd972;
/* rgb */ color: rgb(236, 217, 114);
/* oklch */ color: oklch(88.0% 0.126 99.1);
Tailwind
colors: {
  custom: {
    50: '#f4e49d',
    500: '#ecd972',
    950: '#000000',
  },
}
SCSS
$custom: #ecd972;
$custom-light: #f4e49d;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd972",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 114
  },
  "hsl": {
    "h": 50.656,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.88006,
    "c": 0.12573,
    "h": 99.1
  },
  "luminance": 0.68673
}

Semantic roles & 50–950 ramp

primary
#ECD972
secondary
#3E53C4
accent
#2DD80D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD972

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

Preview Lab → · Contrast checker → · Palette generator →

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