#CCAC40#CCAC40

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

Color values

HEX#CCAC40
RGBrgb(204, 172, 64)
HSLhsl(46, 58%, 53%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 15.7%, 68.6%, 20%)
CIE-LABlab(71.36, -0.05, 57.60)
CIE-LCHlch(71.36, 57.60, 90.05°)
OKLaboklab(75.32% -0.0052 0.1294)
OKLCHoklch(75.32% 0.129 92.3)
XYZxyz(40.5819, 42.7149, 10.9568)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC40 #4060CC
analogous
#CC6640 #CCAC40 #A6CC40
triadic
#CCAC40 #40CCAC #AC40CC
tetradic
#CCAC40 #40CC66 #4060CC #CC40A6
square
#CCAC40 #40CC66 #4060CC #CC40A6
split-complementary
#CCAC40 #40A6CC #6640CC
monochromatic
#73601F #A3882C #CCAC40 #D9C170 #E6D6A1

Accessibility & contrast

On white

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

On black

9.54
#CCAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAC40
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAC40#FFFFFF#000000##000000
##CCAC401.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA932
Deuteranopia (green-blind)
#C6B345
Tritanopia (blue-blind)
#DC9E96
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ccac40;
/* rgb */ color: rgb(204, 172, 64);
/* oklch */ color: oklch(75.3% 0.129 92.3);
Tailwind
colors: {
  custom: {
    50: '#dfc47a',
    500: '#ccac40',
    950: '#000000',
  },
}
SCSS
$custom: #ccac40;
$custom-light: #dfc47a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac40",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 46.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75318,
    "c": 0.12945,
    "h": 92.3
  },
  "luminance": 0.42713
}

Semantic roles & 50–950 ramp

primary
#CCAC40
secondary
#95A3D2
accent
#6AE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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