#ECD85F#ECD85F

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

Color values

HEX#ECD85F
RGBrgb(236, 216, 95)
HSLhsl(51, 79%, 65%)
HSVhsv(51, 60%, 93%)
CMYKcmyk(0%, 8.5%, 59.7%, 7.5%)
CIE-LABlab(85.89, -7.40, 60.71)
CIE-LCHlch(85.89, 61.16, 96.95°)
OKLaboklab(87.59% -0.0246 0.1397)
OKLCHoklch(87.59% 0.142 100)
XYZxyz(61.2159, 67.7734, 20.6813)
Luminance0.6777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD85F #5F73EC
analogous
#EC915F #ECD85F #BAEC5F
triadic
#ECD85F #5FECD8 #D85FEC
tetradic
#ECD85F #5FEC91 #5F73EC #EC5FBA
square
#ECD85F #5FEC91 #5F73EC #EC5FBA
split-complementary
#ECD85F #5FBAEC #915FEC
monochromatic
#BAA316 #E6CB28 #ECD85F #F2E596 #F9F3CC

Accessibility & contrast

On white

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

On black

14.55
#ECD85F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD85F
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD85F#FFFFFF#000000##000000
##ECD85F1.001.4414.5514.55
#FFFFFF1.441.0021.0021.00
#00000014.5521.001.001.00
##00000014.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecd85f;
/* rgb */ color: rgb(236, 216, 95);
/* oklch */ color: oklch(87.6% 0.142 100.0);
Tailwind
colors: {
  custom: {
    50: '#f5e391',
    500: '#ecd85f',
    950: '#000000',
  },
}
SCSS
$custom: #ecd85f;
$custom-light: #f5e391;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd85f",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 95
  },
  "hsl": {
    "h": 51.489,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.87586,
    "c": 0.14182,
    "h": 100
  },
  "luminance": 0.67771
}

Semantic roles & 50–950 ramp

primary
#ECD85F
secondary
#3648BA
accent
#28DB0A
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD85F

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

Preview Lab → · Contrast checker → · Palette generator →

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