#CCAB42#CCAB42

#CCAB42 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 75.1% C 0.127 H 91.4°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#CCAB42
RGBrgb(204, 171, 66)
HSLhsl(46, 58%, 53%)
HSVhsv(46, 68%, 80%)
CMYKcmyk(0%, 16.2%, 67.6%, 20%)
CIE-LABlab(71.12, 0.59, 56.50)
CIE-LCHlch(71.12, 56.50, 89.40°)
OKLaboklab(75.13% -0.0031 0.1274)
OKLCHoklch(75.13% 0.127 91.4)
XYZxyz(40.4502, 42.3589, 11.1987)
Luminance0.4236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB42 #4263CC
analogous
#CC6642 #CCAB42 #A8CC42
triadic
#CCAB42 #42CCAB #AB42CC
tetradic
#CCAB42 #42CC66 #4263CC #CC42A8
square
#CCAB42 #42CC66 #4263CC #CC42A8
split-complementary
#CCAB42 #42A8CC #6642CC
monochromatic
#74601F #A4882C #CCAB42 #D9C072 #E6D6A2

Accessibility & contrast

On white

2.22
#CCAB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#CCAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAB42
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAB42#FFFFFF#000000##000000
##CCAB421.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA935
Deuteranopia (green-blind)
#C5B247
Tritanopia (blue-blind)
#DC9E95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab42;
/* rgb */ color: rgb(204, 171, 66);
/* oklch */ color: oklch(75.1% 0.127 91.4);
Tailwind
colors: {
  custom: {
    50: '#dfc37c',
    500: '#ccab42',
    950: '#000000',
  },
}
SCSS
$custom: #ccab42;
$custom-light: #dfc37c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab42",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 45.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.75131,
    "c": 0.1274,
    "h": 91.4
  },
  "luminance": 0.42357
}

Semantic roles & 50–950 ramp

primary
#CCAB42
secondary
#97A5D3
accent
#6CE147
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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