#CCAC2D#CCAC2D

#CCAC2D is a light, vivid yellow. Relative luminance 0.425; OKLCH L 75.2% C 0.141 H 94.0°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#CCAC2D
RGBrgb(204, 172, 45)
HSLhsl(48, 64%, 49%)
HSVhsv(48, 78%, 80%)
CMYKcmyk(0%, 15.7%, 77.9%, 20%)
CIE-LABlab(71.24, -0.92, 64.67)
CIE-LCHlch(71.24, 64.68, 90.82°)
OKLaboklab(75.18% -0.0097 0.1408)
OKLCHoklch(75.18% 0.141 94)
XYZxyz(40.1303, 42.5342, 8.5783)
Luminance0.4253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC2D #2D4DCC
analogous
#CC5D2D #CCAC2D #9DCC2D
triadic
#CCAC2D #2DCCAC #AC2DCC
tetradic
#CCAC2D #2DCC5D #2D4DCC #CC2D9D
square
#CCAC2D #2DCC5D #2D4DCC #CC2D9D
split-complementary
#CCAC2D #2D9DCC #5D2DCC
monochromatic
#685717 #9A8222 #CCAC2D #DBC15B #E6D48D

Accessibility & contrast

On white

2.21
#CCAC2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#CCAC2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAC2D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAC2D#FFFFFF#000000##000000
##CCAC2D1.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA911
Deuteranopia (green-blind)
#C7B235
Tritanopia (blue-blind)
#DD9E94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccac2d;
/* rgb */ color: rgb(204, 172, 45);
/* oklch */ color: oklch(75.2% 0.141 94.0);
Tailwind
colors: {
  custom: {
    50: '#e0c470',
    500: '#ccac2d',
    950: '#000000',
  },
}
SCSS
$custom: #ccac2d;
$custom-light: #e0c470;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac2d",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 45
  },
  "hsl": {
    "h": 47.925,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75182,
    "c": 0.1411,
    "h": 94
  },
  "luminance": 0.42532
}

Semantic roles & 50–950 ramp

primary
#CCAC2D
secondary
#8594D0
accent
#62E741
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CCAC2D

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

Preview Lab → · Contrast checker → · Palette generator →

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