#ECD861#ECD861

#ECD861 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.6% C 0.140 H 99.8°. Best body text is #000000 at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#ECD861
RGBrgb(236, 216, 97)
HSLhsl(51, 79%, 65%)
HSVhsv(51, 59%, 93%)
CMYKcmyk(0%, 8.5%, 58.9%, 7.5%)
CIE-LABlab(85.91, -7.26, 59.85)
CIE-LCHlch(85.91, 60.29, 96.92°)
OKLaboklab(87.61% -0.024 0.1381)
OKLCHoklch(87.61% 0.14 99.8)
XYZxyz(61.3079, 67.8102, 21.1663)
Luminance0.6781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD861 #6175EC
analogous
#EC9261 #ECD861 #BAEC61
triadic
#ECD861 #61ECD8 #D861EC
tetradic
#ECD861 #61EC92 #6175EC #EC61BA
square
#ECD861 #61EC92 #6175EC #EC61BA
split-complementary
#ECD861 #61BAEC #9261EC
monochromatic
#BCA417 #E5CB2A #ECD861 #F3E598 #F9F3CE

Accessibility & contrast

On white

1.44
#ECD861 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.56
#ECD861 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD861
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD861#FFFFFF#000000##000000
##ECD8611.001.4414.5614.56
#FFFFFF1.441.0021.0021.00
#00000014.5621.001.001.00
##00000014.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD254
Deuteranopia (green-blind)
#F0DA67
Tritanopia (blue-blind)
#FDCABE
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ecd861;
/* rgb */ color: rgb(236, 216, 97);
/* oklch */ color: oklch(87.6% 0.140 99.8);
Tailwind
colors: {
  custom: {
    50: '#f5e392',
    500: '#ecd861',
    950: '#000000',
  },
}
SCSS
$custom: #ecd861;
$custom-light: #f5e392;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd861",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 97
  },
  "hsl": {
    "h": 51.367,
    "s": 78.531,
    "l": 65.294
  },
  "oklch": {
    "l": 0.87607,
    "c": 0.14015,
    "h": 99.8
  },
  "luminance": 0.67808
}

Semantic roles & 50–950 ramp

primary
#ECD861
secondary
#3649BB
accent
#29DB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD861

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

Preview Lab → · Contrast checker → · Palette generator →

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