#CCAC3A#CCAC3A

#CCAC3A is a light, vivid yellow. Relative luminance 0.426; OKLCH L 75.3% C 0.134 H 92.9°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#CCAC3A
RGBrgb(204, 172, 58)
HSLhsl(47, 59%, 51%)
HSVhsv(47, 72%, 80%)
CMYKcmyk(0%, 15.7%, 71.6%, 20%)
CIE-LABlab(71.32, -0.36, 59.99)
CIE-LCHlch(71.32, 60.00, 90.35°)
OKLaboklab(75.27% -0.0068 0.1334)
OKLCHoklch(75.27% 0.134 92.9)
XYZxyz(40.4202, 42.6502, 10.1055)
Luminance0.4265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC3A #3A5ACC
analogous
#CC633A #CCAC3A #A3CC3A
triadic
#CCAC3A #3ACCAC #AC3ACC
tetradic
#CCAC3A #3ACC63 #3A5ACC #CC3AA3
square
#CCAC3A #3ACC63 #3A5ACC #CC3AA3
split-complementary
#CCAC3A #3AA3CC #633ACC
monochromatic
#6F5D1D #A08629 #CCAC3A #D9C06B #E5D59B

Accessibility & contrast

On white

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

On black

9.53
#CCAC3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAC3A
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAC3A#FFFFFF#000000##000000
##CCAC3A1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA929
Deuteranopia (green-blind)
#C6B340
Tritanopia (blue-blind)
#DC9E95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ccac3a;
/* rgb */ color: rgb(204, 172, 58);
/* oklch */ color: oklch(75.3% 0.134 92.9);
Tailwind
colors: {
  custom: {
    50: '#e0c477',
    500: '#ccac3a',
    950: '#000000',
  },
}
SCSS
$custom: #ccac3a;
$custom-light: #e0c477;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac3a",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 58
  },
  "hsl": {
    "h": 46.849,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75269,
    "c": 0.13353,
    "h": 92.9
  },
  "luminance": 0.42648
}

Semantic roles & 50–950 ramp

primary
#CCAC3A
secondary
#919FD1
accent
#68E246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAC3A

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

Preview Lab → · Contrast checker → · Palette generator →

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