#ECC751#ECC751

#ECC751 is a very light, vivid yellow. Relative luminance 0.593; OKLCH L 84.0% C 0.140 H 91.6°. Best body text is #000000 at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#ECC751
RGBrgb(236, 199, 81)
HSLhsl(46, 80%, 62%)
HSVhsv(46, 66%, 93%)
CMYKcmyk(0%, 15.7%, 65.7%, 7.5%)
CIE-LABlab(81.44, 0.40, 61.92)
CIE-LCHlch(81.44, 61.92, 89.63°)
OKLaboklab(84.03% -0.0038 0.1403)
OKLCHoklch(84.03% 0.14 91.6)
XYZxyz(56.5035, 59.2770, 16.2484)
Luminance0.5927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECC751 #5176EC
analogous
#EC7951 #ECC751 #C4EC51
triadic
#ECC751 #51ECC7 #C751EC
tetradic
#ECC751 #51EC79 #5176EC #EC51C4
square
#ECC751 #51EC79 #5176EC #EC51C4
split-complementary
#ECC751 #51C4EC #7951EC
monochromatic
#AF8A13 #E6B51A #ECC751 #F2D988 #F8EBBF

Accessibility & contrast

On white

1.63
#ECC751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.85
#ECC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECC751
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECC751#FFFFFF#000000##000000
##ECC7511.001.6312.8512.85
#FFFFFF1.631.0021.0021.00
#00000012.8521.001.001.00
##00000012.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC443
Deuteranopia (green-blind)
#E5CF57
Tritanopia (blue-blind)
#FEB8AE
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ecc751;
/* rgb */ color: rgb(236, 199, 81);
/* oklch */ color: oklch(84.0% 0.140 91.6);
Tailwind
colors: {
  custom: {
    50: '#f6d787',
    500: '#ecc751',
    950: '#000000',
  },
}
SCSS
$custom: #ecc751;
$custom-light: #f6d787;
$custom-dark: #000000;
JSON
{
  "hex": "#ecc751",
  "rgb": {
    "r": 236,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 45.677,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.84027,
    "c": 0.14031,
    "h": 91.6
  },
  "luminance": 0.59274
}

Semantic roles & 50–950 ramp

primary
#ECC751
secondary
#3150B0
accent
#3BDD09
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#18140C
muted
#86837F

Preview Lab

Preview with #ECC751

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

Preview Lab → · Contrast checker → · Palette generator →

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