#ECD981#ECD981

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

Color values

HEX#ECD981
RGBrgb(236, 217, 129)
HSLhsl(49, 74%, 72%)
HSVhsv(49, 45%, 93%)
CMYKcmyk(0%, 8.1%, 45.3%, 7.5%)
CIE-LABlab(86.53, -5.13, 45.55)
CIE-LCHlch(86.53, 45.83, 96.42°)
OKLaboklab(88.21% -0.0144 0.1098)
OKLCHoklch(88.21% 0.111 97.5)
XYZxyz(63.3691, 69.0458, 30.7538)
Luminance0.6904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD981 #8194EC
analogous
#ECA481 #ECD981 #CAEC81
triadic
#ECD981 #81ECD9 #D981EC
tetradic
#ECD981 #81ECA4 #8194EC #EC81CA
square
#ECD981 #81ECA4 #8194EC #EC81CA
split-complementary
#ECD981 #81CAEC #A481EC
monochromatic
#D3B320 #E4C94C #ECD981 #F4E9B6 #FBF7E4

Accessibility & contrast

On white

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

On black

14.81
#ECD981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD981
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD981#FFFFFF#000000##000000
##ECD9811.001.4214.8114.81
#FFFFFF1.421.0021.0021.00
#00000014.8121.001.001.00
##00000014.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D57A
Deuteranopia (green-blind)
#EEDB84
Tritanopia (blue-blind)
#FBCDC4
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd981;
/* rgb */ color: rgb(236, 217, 129);
/* oklch */ color: oklch(88.2% 0.111 97.5);
Tailwind
colors: {
  custom: {
    50: '#f4e4a7',
    500: '#ecd981',
    950: '#000000',
  },
}
SCSS
$custom: #ecd981;
$custom-light: #f4e4a7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd981",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 129
  },
  "hsl": {
    "h": 49.346,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.8821,
    "c": 0.11074,
    "h": 97.5
  },
  "luminance": 0.69044
}

Semantic roles & 50–950 ramp

primary
#ECD981
secondary
#4B61C6
accent
#33D610
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD981

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

Preview Lab → · Contrast checker → · Palette generator →

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