#ECEC52#ECEC52

#ECEC52 is a very light, vivid yellow. Relative luminance 0.784; OKLCH L 91.6% C 0.170 H 109.3°. Best body text is #000000 at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#ECEC52
RGBrgb(236, 236, 82)
HSLhsl(60, 80%, 62%)
HSVhsv(60, 65%, 93%)
CMYKcmyk(0%, 0%, 65.3%, 7.5%)
CIE-LABlab(90.98, -18.10, 71.45)
CIE-LCHlch(90.98, 73.70, 104.21°)
OKLaboklab(91.6% -0.0563 0.1605)
OKLCHoklch(91.6% 0.17 109.3)
XYZxyz(66.1127, 78.4349, 19.6378)
Luminance0.7843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC52 #5252EC
analogous
#EC9F52 #ECEC52 #9FEC52
triadic
#ECEC52 #52ECEC #EC52EC
tetradic
#ECEC52 #52EC9F #5252EC #EC529F
square
#ECEC52 #52EC9F #5252EC #EC529F
split-complementary
#ECEC52 #529FEC #9F52EC
monochromatic
#B0B013 #E6E61B #ECEC52 #F2F289 #F8F8C0

Accessibility & contrast

On white

1.26
#ECEC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.69
#ECEC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC52
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC52#FFFFFF#000000##000000
##ECEC521.001.2616.6916.69
#FFFFFF1.261.0021.0021.00
#00000016.6921.001.001.00
##00000016.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE23C
Deuteranopia (green-blind)
#FFE85C
Tritanopia (blue-blind)
#FCDECD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #ecec52;
/* rgb */ color: rgb(236, 236, 82);
/* oklch */ color: oklch(91.6% 0.170 109.3);
Tailwind
colors: {
  custom: {
    50: '#f6f18a',
    500: '#ecec52',
    950: '#000000',
  },
}
SCSS
$custom: #ecec52;
$custom-light: #f6f18a;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec52",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.91599,
    "c": 0.17014,
    "h": 109.3
  },
  "luminance": 0.78433
}

Semantic roles & 50–950 ramp

primary
#ECEC52
secondary
#3232B1
accent
#09DD09
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160C
muted
#86857F

Preview Lab

Preview with #ECEC52

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

Preview Lab → · Contrast checker → · Palette generator →

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