#ECEC5F#ECEC5F

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

Color values

HEX#ECEC5F
RGBrgb(236, 236, 95)
HSLhsl(60, 79%, 65%)
HSVhsv(60, 60%, 93%)
CMYKcmyk(0%, 0%, 59.7%, 7.5%)
CIE-LABlab(91.08, -17.31, 66.38)
CIE-LCHlch(91.08, 68.60, 104.62°)
OKLaboklab(91.71% -0.0528 0.1517)
OKLCHoklch(91.71% 0.161 109.2)
XYZxyz(66.6551, 78.6518, 22.4944)
Luminance0.7865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC5F #5F5FEC
analogous
#ECA65F #ECEC5F #A6EC5F
triadic
#ECEC5F #5FECEC #EC5FEC
tetradic
#ECEC5F #5FECA6 #5F5FEC #EC5FA6
square
#ECEC5F #5FECA6 #5F5FEC #EC5FA6
split-complementary
#ECEC5F #5FA6EC #A65FEC
monochromatic
#BABA16 #E6E628 #ECEC5F #F2F296 #F9F9CC

Accessibility & contrast

On white

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

On black

16.73
#ECEC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC5F
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC5F#FFFFFF#000000##000000
##ECEC5F1.001.2616.7316.73
#FFFFFF1.261.0021.0021.00
#00000016.7321.001.001.00
##00000016.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE34E
Deuteranopia (green-blind)
#FFE867
Tritanopia (blue-blind)
#FBDECE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #ecec5f;
/* rgb */ color: rgb(236, 236, 95);
/* oklch */ color: oklch(91.7% 0.161 109.2);
Tailwind
colors: {
  custom: {
    50: '#f5f192',
    500: '#ecec5f',
    950: '#000000',
  },
}
SCSS
$custom: #ecec5f;
$custom-light: #f5f192;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec5f",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 95
  },
  "hsl": {
    "h": 60,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.9171,
    "c": 0.16064,
    "h": 109.2
  },
  "luminance": 0.7865
}

Semantic roles & 50–950 ramp

primary
#ECEC5F
secondary
#3636BA
accent
#0ADB0A
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#17160D
muted
#85857F

Preview Lab

Preview with #ECEC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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