#ECC742#ECC742

#ECC742 is a very light, vivid yellow. Relative luminance 0.591; OKLCH L 83.9% C 0.150 H 92.9°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#ECC742
RGBrgb(236, 199, 66)
HSLhsl(47, 82%, 59%)
HSVhsv(47, 72%, 93%)
CMYKcmyk(0%, 15.7%, 72%, 7.5%)
CIE-LABlab(81.33, -0.37, 67.83)
CIE-LCHlch(81.33, 67.83, 90.31°)
OKLaboklab(83.91% -0.0077 0.1502)
OKLCHoklch(83.91% 0.15 92.9)
XYZxyz(56.0019, 59.0763, 13.6064)
Luminance0.5907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECC742 #4267EC
analogous
#EC7242 #ECC742 #BCEC42
triadic
#ECC742 #42ECC7 #C742EC
tetradic
#ECC742 #42EC72 #4267EC #EC42BC
square
#ECC742 #42EC72 #4267EC #EC42BC
split-complementary
#ECC742 #42BCEC #7242EC
monochromatic
#A38310 #DBB016 #ECC742 #F2D77A #F7E8B1

Accessibility & contrast

On white

1.64
#ECC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#ECC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECC742
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECC742#FFFFFF#000000##000000
##ECC7421.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC42D
Deuteranopia (green-blind)
#E5CF49
Tritanopia (blue-blind)
#FFB7AD
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ecc742;
/* rgb */ color: rgb(236, 199, 66);
/* oklch */ color: oklch(83.9% 0.150 92.9);
Tailwind
colors: {
  custom: {
    50: '#f6d77e',
    500: '#ecc742',
    950: '#000000',
  },
}
SCSS
$custom: #ecc742;
$custom-light: #f6d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecc742",
  "rgb": {
    "r": 236,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 46.941,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.83905,
    "c": 0.1504,
    "h": 92.9
  },
  "luminance": 0.59073
}

Semantic roles & 50–950 ramp

primary
#ECC742
secondary
#2D47A5
accent
#5BF830
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#18140B
muted
#86837E

Preview Lab

Preview with #ECC742

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

Preview Lab → · Contrast checker → · Palette generator →

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