#ECD772#ECD772

#ECD772 is a very light, vivid yellow. Relative luminance 0.676; OKLCH L 87.6% C 0.124 H 97.8°. Best body text is #000000 at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#ECD772
RGBrgb(236, 215, 114)
HSLhsl(50, 76%, 69%)
HSVhsv(50, 52%, 93%)
CMYKcmyk(0%, 8.9%, 51.7%, 7.5%)
CIE-LABlab(85.83, -5.46, 51.95)
CIE-LCHlch(85.83, 52.24, 96.00°)
OKLaboklab(87.6% -0.0169 0.1228)
OKLCHoklch(87.6% 0.124 97.8)
XYZxyz(61.9318, 67.6511, 25.7120)
Luminance0.6765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD772 #7287EC
analogous
#EC9A72 #ECD772 #C4EC72
triadic
#ECD772 #72ECD7 #D772EC
tetradic
#ECD772 #72EC9A #7287EC #EC72C4
square
#ECD772 #72EC9A #7287EC #EC72C4
split-complementary
#ECD772 #72C4EC #9A72EC
monochromatic
#C9AB1B #E5C83C #ECD772 #F3E6A8 #FBF6DE

Accessibility & contrast

On white

1.45
#ECD772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.53
#ECD772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD772
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD772#FFFFFF#000000##000000
##ECD7721.001.4514.5314.53
#FFFFFF1.451.0021.0021.00
#00000014.5321.001.001.00
##00000014.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D269
Deuteranopia (green-blind)
#EEDA76
Tritanopia (blue-blind)
#FCCAC0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ecd772;
/* rgb */ color: rgb(236, 215, 114);
/* oklch */ color: oklch(87.6% 0.124 97.8);
Tailwind
colors: {
  custom: {
    50: '#f4e39d',
    500: '#ecd772',
    950: '#000000',
  },
}
SCSS
$custom: #ecd772;
$custom-light: #f4e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd772",
  "rgb": {
    "r": 236,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 49.672,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.87601,
    "c": 0.12399,
    "h": 97.8
  },
  "luminance": 0.67649
}

Semantic roles & 50–950 ramp

primary
#ECD772
secondary
#3E55C4
accent
#30D80D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD772

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

Preview Lab → · Contrast checker → · Palette generator →

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