#ECD381#ECD381

#ECD381 is a very light, moderate yellow. Relative luminance 0.660; OKLCH L 87.0% C 0.106 H 93.0°. Best body text is #000000 at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#ECD381
RGBrgb(236, 211, 129)
HSLhsl(46, 74%, 72%)
HSVhsv(46, 45%, 93%)
CMYKcmyk(0%, 10.6%, 45.3%, 7.5%)
CIE-LABlab(85.00, -2.07, 43.64)
CIE-LCHlch(85.00, 43.69, 92.71°)
OKLaboklab(87% -0.0055 0.1055)
OKLCHoklch(87% 0.106 93)
XYZxyz(61.8506, 66.0088, 30.2476)
Luminance0.6601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD381 #819AEC
analogous
#EC9E81 #ECD381 #D0EC81
triadic
#ECD381 #81ECD3 #D381EC
tetradic
#ECD381 #81EC9E #819AEC #EC81D0
square
#ECD381 #81EC9E #819AEC #EC81D0
split-complementary
#ECD381 #81D0EC #9E81EC
monochromatic
#D3A920 #E4C04C #ECD381 #F4E6B6 #FBF6E4

Accessibility & contrast

On white

1.48
#ECD381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.20
#ECD381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD381
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD381#FFFFFF#000000##000000
##ECD3811.001.4814.2014.20
#FFFFFF1.481.0021.0021.00
#00000014.2021.001.001.00
##00000014.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3D07B
Deuteranopia (green-blind)
#E9D884
Tritanopia (blue-blind)
#FBC7BF
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #ecd381;
/* rgb */ color: rgb(236, 211, 129);
/* oklch */ color: oklch(87.0% 0.106 93.0);
Tailwind
colors: {
  custom: {
    50: '#f4e0a7',
    500: '#ecd381',
    950: '#000000',
  },
}
SCSS
$custom: #ecd381;
$custom-light: #f4e0a7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd381",
  "rgb": {
    "r": 236,
    "g": 211,
    "b": 129
  },
  "hsl": {
    "h": 45.981,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.87004,
    "c": 0.10567,
    "h": 93
  },
  "luminance": 0.66006
}

Semantic roles & 50–950 ramp

primary
#ECD381
secondary
#4B68C6
accent
#3ED610
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD381

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

Preview Lab → · Contrast checker → · Palette generator →

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