#CCAC42#CCAC42

#CCAC42 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.3% C 0.128 H 92.1°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#CCAC42
RGBrgb(204, 172, 66)
HSLhsl(46, 58%, 53%)
HSVhsv(46, 68%, 80%)
CMYKcmyk(0%, 15.7%, 67.6%, 20%)
CIE-LABlab(71.38, 0.06, 56.77)
CIE-LCHlch(71.38, 56.77, 89.94°)
OKLaboklab(75.34% -0.0046 0.1279)
OKLCHoklch(75.34% 0.128 92.1)
XYZxyz(40.6398, 42.7381, 11.2619)
Luminance0.4274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC42 #4262CC
analogous
#CC6742 #CCAC42 #A7CC42
triadic
#CCAC42 #42CCAC #AC42CC
tetradic
#CCAC42 #42CC67 #4262CC #CC42A7
square
#CCAC42 #42CC67 #4262CC #CC42A7
split-complementary
#CCAC42 #42A7CC #6742CC
monochromatic
#74611F #A4892C #CCAC42 #D9C172 #E6D6A2

Accessibility & contrast

On white

2.20
#CCAC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#CCAC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAC42
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAC42#FFFFFF#000000##000000
##CCAC421.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA935
Deuteranopia (green-blind)
#C6B347
Tritanopia (blue-blind)
#DC9F96
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ccac42;
/* rgb */ color: rgb(204, 172, 66);
/* oklch */ color: oklch(75.3% 0.128 92.1);
Tailwind
colors: {
  custom: {
    50: '#dfc47c',
    500: '#ccac42',
    950: '#000000',
  },
}
SCSS
$custom: #ccac42;
$custom-light: #dfc47c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac42",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 66
  },
  "hsl": {
    "h": 46.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.75336,
    "c": 0.12802,
    "h": 92.1
  },
  "luminance": 0.42736
}

Semantic roles & 50–950 ramp

primary
#CCAC42
secondary
#97A5D3
accent
#6BE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAC42

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

Preview Lab → · Contrast checker → · Palette generator →

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