#ECD852#ECD852

#ECD852 is a very light, vivid yellow. Relative luminance 0.676; OKLCH L 87.5% C 0.152 H 100.8°. Best body text is #000000 at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#ECD852
RGBrgb(236, 216, 82)
HSLhsl(52, 80%, 62%)
HSVhsv(52, 65%, 93%)
CMYKcmyk(0%, 8.5%, 65.3%, 7.5%)
CIE-LABlab(85.78, -8.21, 66.08)
CIE-LCHlch(85.78, 66.59, 97.08°)
OKLaboklab(87.47% -0.0283 0.1492)
OKLCHoklch(87.47% 0.152 100.8)
XYZxyz(60.6735, 67.5564, 17.8248)
Luminance0.6755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD852 #5266EC
analogous
#EC8B52 #ECD852 #B3EC52
triadic
#ECD852 #52ECD8 #D852EC
tetradic
#ECD852 #52EC8B #5266EC #EC52B3
square
#ECD852 #52EC8B #5266EC #EC52B3
split-complementary
#ECD852 #52B3EC #8B52EC
monochromatic
#B09C13 #E6CC1B #ECD852 #F2E489 #F8F1C0

Accessibility & contrast

On white

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

On black

14.51
#ECD852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD852
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD852#FFFFFF#000000##000000
##ECD8521.001.4514.5114.51
#FFFFFF1.451.0021.0021.00
#00000014.5121.001.001.00
##00000014.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD241
Deuteranopia (green-blind)
#F1DA5A
Tritanopia (blue-blind)
#FDC9BC
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #ecd852;
/* rgb */ color: rgb(236, 216, 82);
/* oklch */ color: oklch(87.5% 0.152 100.8);
Tailwind
colors: {
  custom: {
    50: '#f6e389',
    500: '#ecd852',
    950: '#000000',
  },
}
SCSS
$custom: #ecd852;
$custom-light: #f6e389;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd852",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 52.208,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.87465,
    "c": 0.15189,
    "h": 100.8
  },
  "luminance": 0.67554
}

Semantic roles & 50–950 ramp

primary
#ECD852
secondary
#3242B1
accent
#24DD09
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #ECD852

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

Preview Lab → · Contrast checker → · Palette generator →

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