#ECEC57#ECEC57

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

Color values

HEX#ECEC57
RGBrgb(236, 236, 87)
HSLhsl(60, 80%, 63%)
HSVhsv(60, 63%, 93%)
CMYKcmyk(0%, 0%, 63.1%, 7.5%)
CIE-LABlab(91.01, -17.81, 69.55)
CIE-LCHlch(91.01, 71.79, 104.36°)
OKLaboklab(91.64% -0.055 0.1573)
OKLCHoklch(91.64% 0.167 109.3)
XYZxyz(66.3100, 78.5138, 20.6766)
Luminance0.7851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC57 #5757EC
analogous
#ECA157 #ECEC57 #A1EC57
triadic
#ECEC57 #57ECEC #EC57EC
tetradic
#ECEC57 #57ECA1 #5757EC #EC57A1
square
#ECEC57 #57ECA1 #5757EC #EC57A1
split-complementary
#ECEC57 #57A1EC #A157EC
monochromatic
#B4B414 #E6E620 #ECEC57 #F2F28E #F8F8C5

Accessibility & contrast

On white

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

On black

16.70
#ECEC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC57
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC57#FFFFFF#000000##000000
##ECEC571.001.2616.7016.70
#FFFFFF1.261.0021.0021.00
#00000016.7021.001.001.00
##00000016.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecec57;
/* rgb */ color: rgb(236, 236, 87);
/* oklch */ color: oklch(91.6% 0.167 109.3);
Tailwind
colors: {
  custom: {
    50: '#f5f18d',
    500: '#ecec57',
    950: '#000000',
  },
}
SCSS
$custom: #ecec57;
$custom-light: #f5f18d;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec57",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 87
  },
  "hsl": {
    "h": 60,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.9164,
    "c": 0.16665,
    "h": 109.3
  },
  "luminance": 0.78512
}

Semantic roles & 50–950 ramp

primary
#ECEC57
secondary
#3333B4
accent
#0ADC0A
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #ECEC57

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

Preview Lab → · Contrast checker → · Palette generator →

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