#CCAB3C#CCAB3C

#CCAB3C is a light, vivid yellow. Relative luminance 0.423; OKLCH L 75.1% C 0.132 H 92.1°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CCAB3C
RGBrgb(204, 171, 60)
HSLhsl(46, 59%, 52%)
HSVhsv(46, 71%, 80%)
CMYKcmyk(0%, 16.2%, 70.6%, 20%)
CIE-LABlab(71.07, 0.27, 58.95)
CIE-LCHlch(71.07, 58.95, 89.74°)
OKLaboklab(75.08% -0.0047 0.1315)
OKLCHoklch(75.08% 0.132 92.1)
XYZxyz(40.2825, 42.2918, 10.3155)
Luminance0.4229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB3C #3C5DCC
analogous
#CC633C #CCAB3C #A5CC3C
triadic
#CCAB3C #3CCCAB #AB3CCC
tetradic
#CCAB3C #3CCC63 #3C5DCC #CC3CA5
square
#CCAB3C #3CCC63 #3C5DCC #CC3CA5
split-complementary
#CCAB3C #3CA5CC #633CCC
monochromatic
#705D1D #A1862A #CCAB3C #D9C06D #E5D59D

Accessibility & contrast

On white

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

On black

9.46
#CCAB3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAB3C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAB3C#FFFFFF#000000##000000
##CCAB3C1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA82C
Deuteranopia (green-blind)
#C6B242
Tritanopia (blue-blind)
#DC9D94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab3c;
/* rgb */ color: rgb(204, 171, 60);
/* oklch */ color: oklch(75.1% 0.132 92.1);
Tailwind
colors: {
  custom: {
    50: '#dfc378',
    500: '#ccab3c',
    950: '#000000',
  },
}
SCSS
$custom: #ccab3c;
$custom-light: #dfc378;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab3c",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 60
  },
  "hsl": {
    "h": 46.25,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7508,
    "c": 0.1316,
    "h": 92.1
  },
  "luminance": 0.42289
}

Semantic roles & 50–950 ramp

primary
#CCAB3C
secondary
#92A1D1
accent
#6AE246
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAB3C

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

Preview Lab → · Contrast checker → · Palette generator →

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