#CCAA42#CCAA42

#CCAA42 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.9% C 0.127 H 90.7°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#CCAA42
RGBrgb(204, 170, 66)
HSLhsl(45, 58%, 53%)
HSVhsv(45, 68%, 80%)
CMYKcmyk(0%, 16.7%, 67.6%, 20%)
CIE-LABlab(70.86, 1.12, 56.23)
CIE-LCHlch(70.86, 56.24, 88.86°)
OKLaboklab(74.93% -0.0016 0.1268)
OKLCHoklch(74.93% 0.127 90.7)
XYZxyz(40.2620, 41.9825, 11.1360)
Luminance0.4198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAA42 #4264CC
analogous
#CC6542 #CCAA42 #A9CC42
triadic
#CCAA42 #42CCAA #AA42CC
tetradic
#CCAA42 #42CC65 #4264CC #CC42A9
square
#CCAA42 #42CC65 #4264CC #CC42A9
split-complementary
#CCAA42 #42A9CC #6542CC
monochromatic
#745F1F #A4872C #CCAA42 #D9C072 #E6D5A2

Accessibility & contrast

On white

2.23
#CCAA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#CCAA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAA42
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAA42#FFFFFF#000000##000000
##CCAA421.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA835
Deuteranopia (green-blind)
#C5B147
Tritanopia (blue-blind)
#DC9D94
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ccaa42;
/* rgb */ color: rgb(204, 170, 66);
/* oklch */ color: oklch(74.9% 0.127 90.7);
Tailwind
colors: {
  custom: {
    50: '#dfc37b',
    500: '#ccaa42',
    950: '#000000',
  },
}
SCSS
$custom: #ccaa42;
$custom-light: #dfc37b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaa42",
  "rgb": {
    "r": 204,
    "g": 170,
    "b": 66
  },
  "hsl": {
    "h": 45.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.74927,
    "c": 0.1268,
    "h": 90.7
  },
  "luminance": 0.4198
}

Semantic roles & 50–950 ramp

primary
#CCAA42
secondary
#97A6D3
accent
#6DE147
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAA42

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

Preview Lab → · Contrast checker → · Palette generator →

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