#ECEC5D#ECEC5D

#ECEC5D is a very light, vivid yellow. Relative luminance 0.786; OKLCH L 91.7% C 0.162 H 109.2°. Best body text is #000000 at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#ECEC5D
RGBrgb(236, 236, 93)
HSLhsl(60, 79%, 65%)
HSVhsv(60, 61%, 93%)
CMYKcmyk(0%, 0%, 60.6%, 7.5%)
CIE-LABlab(91.06, -17.44, 67.19)
CIE-LCHlch(91.06, 69.42, 104.55°)
OKLaboklab(91.69% -0.0534 0.1532)
OKLCHoklch(91.69% 0.162 109.2)
XYZxyz(66.5653, 78.6159, 22.0217)
Luminance0.7861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC5D #5D5DEC
analogous
#ECA55D #ECEC5D #A5EC5D
triadic
#ECEC5D #5DECEC #EC5DEC
tetradic
#ECEC5D #5DECA5 #5D5DEC #EC5DA5
square
#ECEC5D #5DECA5 #5D5DEC #EC5DA5
split-complementary
#ECEC5D #5DA5EC #A55DEC
monochromatic
#B9B916 #E6E626 #ECEC5D #F2F294 #F9F9CB

Accessibility & contrast

On white

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

On black

16.72
#ECEC5D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC5D
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC5D#FFFFFF#000000##000000
##ECEC5D1.001.2616.7216.72
#FFFFFF1.261.0021.0021.00
#00000016.7221.001.001.00
##00000016.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE34C
Deuteranopia (green-blind)
#FFE866
Tritanopia (blue-blind)
#FCDECE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #ecec5d;
/* rgb */ color: rgb(236, 236, 93);
/* oklch */ color: oklch(91.7% 0.162 109.2);
Tailwind
colors: {
  custom: {
    50: '#f5f191',
    500: '#ecec5d',
    950: '#000000',
  },
}
SCSS
$custom: #ecec5d;
$custom-light: #f5f191;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec5d",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 93
  },
  "hsl": {
    "h": 60,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.91691,
    "c": 0.16219,
    "h": 109.2
  },
  "luminance": 0.78614
}

Semantic roles & 50–950 ramp

primary
#ECEC5D
secondary
#3535B8
accent
#0ADB0A
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#17160D
muted
#85857F

Preview Lab

Preview with #ECEC5D

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

Preview Lab → · Contrast checker → · Palette generator →

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