#ECEC4F#ECEC4F

#ECEC4F is a very light, vivid yellow. Relative luminance 0.784; OKLCH L 91.6% C 0.172 H 109.4°. Best body text is #000000 at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#ECEC4F
RGBrgb(236, 236, 79)
HSLhsl(60, 81%, 62%)
HSVhsv(60, 67%, 93%)
CMYKcmyk(0%, 0%, 66.5%, 7.5%)
CIE-LABlab(90.96, -18.26, 72.55)
CIE-LCHlch(90.96, 74.81, 104.13°)
OKLaboklab(91.58% -0.0571 0.1624)
OKLCHoklch(91.58% 0.172 109.4)
XYZxyz(66.0010, 78.3902, 19.0497)
Luminance0.7839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECEC4F #4F4FEC
analogous
#EC9E4F #ECEC4F #9EEC4F
triadic
#ECEC4F #4FECEC #EC4FEC
tetradic
#ECEC4F #4FEC9E #4F4FEC #EC4F9E
square
#ECEC4F #4FEC9E #4F4FEC #EC4F9E
split-complementary
#ECEC4F #4F9EEC #9E4FEC
monochromatic
#AEAE13 #E5E519 #ECEC4F #F2F286 #F8F8BD

Accessibility & contrast

On white

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

On black

16.68
#ECEC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECEC4F
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECEC4F#FFFFFF#000000##000000
##ECEC4F1.001.2616.6816.68
#FFFFFF1.261.0021.0021.00
#00000016.6821.001.001.00
##00000016.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE237
Deuteranopia (green-blind)
#FFE75A
Tritanopia (blue-blind)
#FCDDCD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #ecec4f;
/* rgb */ color: rgb(236, 236, 79);
/* oklch */ color: oklch(91.6% 0.172 109.4);
Tailwind
colors: {
  custom: {
    50: '#f6f189',
    500: '#ecec4f',
    950: '#000000',
  },
}
SCSS
$custom: #ecec4f;
$custom-light: #f6f189;
$custom-dark: #000000;
JSON
{
  "hex": "#ecec4f",
  "rgb": {
    "r": 236,
    "g": 236,
    "b": 79
  },
  "hsl": {
    "h": 60,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.91577,
    "c": 0.17214,
    "h": 109.4
  },
  "luminance": 0.78388
}

Semantic roles & 50–950 ramp

primary
#ECEC4F
secondary
#3131AE
accent
#09DD09
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160C
muted
#86857F

Preview Lab

Preview with #ECEC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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