#ECD252#ECD252

#ECD252 is a very light, vivid yellow. Relative luminance 0.645; OKLCH L 86.2% C 0.147 H 97.7°. Best body text is #000000 at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#ECD252
RGBrgb(236, 210, 82)
HSLhsl(50, 80%, 62%)
HSVhsv(50, 65%, 93%)
CMYKcmyk(0%, 11%, 65.3%, 7.5%)
CIE-LABlab(84.25, -5.17, 64.47)
CIE-LCHlch(84.25, 64.67, 94.59°)
OKLaboklab(86.25% -0.0197 0.1458)
OKLCHoklch(86.25% 0.147 97.7)
XYZxyz(59.1643, 64.5381, 17.3217)
Luminance0.6453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD252 #526CEC
analogous
#EC8552 #ECD252 #B9EC52
triadic
#ECD252 #52ECD2 #D252EC
tetradic
#ECD252 #52EC85 #526CEC #EC52B9
square
#ECD252 #52EC85 #526CEC #EC52B9
split-complementary
#ECD252 #52B9EC #8552EC
monochromatic
#B09613 #E6C41B #ECD252 #F2E089 #F8EFC0

Accessibility & contrast

On white

1.51
#ECD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.91
#ECD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD252
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD252#FFFFFF#000000##000000
##ECD2521.001.5113.9113.91
#FFFFFF1.511.0021.0021.00
#00000013.9121.001.001.00
##00000013.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD42
Deuteranopia (green-blind)
#EDD659
Tritanopia (blue-blind)
#FEC3B7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ecd252;
/* rgb */ color: rgb(236, 210, 82);
/* oklch */ color: oklch(86.2% 0.147 97.7);
Tailwind
colors: {
  custom: {
    50: '#f6df88',
    500: '#ecd252',
    950: '#000000',
  },
}
SCSS
$custom: #ecd252;
$custom-light: #f6df88;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd252",
  "rgb": {
    "r": 236,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 49.87,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.86245,
    "c": 0.14713,
    "h": 97.7
  },
  "luminance": 0.64535
}

Semantic roles & 50–950 ramp

primary
#ECD252
secondary
#3247B1
accent
#2DDD09
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #ECD252

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

Preview Lab → · Contrast checker → · Palette generator →

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