#ECEC8F#ECEC8F

#ECEC8F is a very light, moderate yellow. Relative luminance 0.798; OKLCH L 92.3% C 0.115 H 108.5°. Best body text is #000000 at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#ECEC8F
RGBrgb(236, 236, 143)
HSLhsl(60, 71%, 74%)
HSVhsv(60, 39%, 93%)
CMYKcmyk(0%, 0%, 39.4%, 7.5%)
CIE-LABlab(91.60, -13.23, 45.05)
CIE-LCHlch(91.60, 46.95, 106.37°)
OKLaboklab(92.3% -0.0365 0.1095)
OKLCHoklch(92.3% 0.115 108.5)
XYZxyz(69.5465, 79.8084, 37.7222)
Luminance0.7981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC8F #8F8FEC
analogous
#ECBE8F #ECEC8F #BEEC8F
triadic
#ECEC8F #8FECEC #EC8FEC
tetradic
#ECEC8F #8FECBE #8F8FEC #EC8FBE
square
#ECEC8F #8FECBE #8F8FEC #EC8FBE
split-complementary
#ECEC8F #8FBEEC #BE8FEC
monochromatic
#DADA26 #E3E35B #ECEC8F #F5F5C3 #FBFBE5

Accessibility & contrast

On white

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

On black

16.96
#ECEC8F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC8F
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC8F#FFFFFF#000000##000000
##ECEC8F1.001.2416.9616.96
#FFFFFF1.241.0021.0021.00
#00000016.9621.001.001.00
##00000016.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE588
Deuteranopia (green-blind)
#FBE993
Tritanopia (blue-blind)
#F8E1D5
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #ecec8f;
/* rgb */ color: rgb(236, 236, 143);
/* oklch */ color: oklch(92.3% 0.115 108.5);
Tailwind
colors: {
  custom: {
    50: '#f3f2b1',
    500: '#ecec8f',
    950: '#000000',
  },
}
SCSS
$custom: #ecec8f;
$custom-light: #f3f2b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec8f",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 143
  },
  "hsl": {
    "h": 60,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.92295,
    "c": 0.11542,
    "h": 108.5
  },
  "luminance": 0.79807
}

Semantic roles & 50–950 ramp

primary
#ECEC8F
secondary
#5858C7
accent
#12D312
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #ECEC8F

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

Preview Lab → · Contrast checker → · Palette generator →

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