#ECEC8A#ECEC8A

#ECEC8A is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 92.2% C 0.121 H 108.5°. Best body text is #000000 at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#ECEC8A
RGBrgb(236, 236, 138)
HSLhsl(60, 72%, 73%)
HSVhsv(60, 42%, 93%)
CMYKcmyk(0%, 0%, 41.5%, 7.5%)
CIE-LABlab(91.53, -13.75, 47.40)
CIE-LCHlch(91.53, 49.35, 106.17°)
OKLaboklab(92.22% -0.0384 0.1145)
OKLCHoklch(92.22% 0.121 108.5)
XYZxyz(69.1761, 79.6602, 35.7717)
Luminance0.7966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC8A #8A8AEC
analogous
#ECBB8A #ECEC8A #BBEC8A
triadic
#ECEC8A #8AECEC #EC8AEC
tetradic
#ECEC8A #8AECBB #8A8AEC #EC8ABB
square
#ECEC8A #8AECBB #8A8AEC #EC8ABB
split-complementary
#ECEC8A #8ABBEC #BB8AEC
monochromatic
#D8D823 #E3E355 #ECEC8A #F5F5BF #FBFBE5

Accessibility & contrast

On white

1.24
#ECEC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.93
#ECEC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC8A
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC8A#FFFFFF#000000##000000
##ECEC8A1.001.2416.9316.93
#FFFFFF1.241.0021.0021.00
#00000016.9321.001.001.00
##00000016.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE582
Deuteranopia (green-blind)
#FCE98E
Tritanopia (blue-blind)
#F9E1D4
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #ecec8a;
/* rgb */ color: rgb(236, 236, 138);
/* oklch */ color: oklch(92.2% 0.121 108.5);
Tailwind
colors: {
  custom: {
    50: '#f4f2ae',
    500: '#ecec8a',
    950: '#000000',
  },
}
SCSS
$custom: #ecec8a;
$custom-light: #f4f2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec8a",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 138
  },
  "hsl": {
    "h": 60,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.9222,
    "c": 0.12077,
    "h": 108.5
  },
  "luminance": 0.79659
}

Semantic roles & 50–950 ramp

primary
#ECEC8A
secondary
#5454C7
accent
#11D411
background
#FFFFFD
surface
#FEFEF7
border
#D6D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #ECEC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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