#CCAB3A#CCAB3A

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

Color values

HEX#CCAB3A
RGBrgb(204, 171, 58)
HSLhsl(46, 59%, 51%)
HSVhsv(46, 72%, 80%)
CMYKcmyk(0%, 16.2%, 71.6%, 20%)
CIE-LABlab(71.06, 0.17, 59.74)
CIE-LCHlch(71.06, 59.74, 89.84°)
OKLaboklab(75.06% -0.0052 0.1328)
OKLCHoklch(75.06% 0.133 92.3)
XYZxyz(40.2306, 42.2710, 10.0423)
Luminance0.4227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB3A #3A5BCC
analogous
#CC623A #CCAB3A #A4CC3A
triadic
#CCAB3A #3ACCAB #AB3ACC
tetradic
#CCAB3A #3ACC62 #3A5BCC #CC3AA4
square
#CCAB3A #3ACC62 #3A5BCC #CC3AA4
split-complementary
#CCAB3A #3AA4CC #623ACC
monochromatic
#6F5C1D #A08529 #CCAB3A #D9C06B #E5D49B

Accessibility & contrast

On white

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

On black

9.45
#CCAB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAB3A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAB3A#FFFFFF#000000##000000
##CCAB3A1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccab3a;
/* rgb */ color: rgb(204, 171, 58);
/* oklch */ color: oklch(75.1% 0.133 92.3);
Tailwind
colors: {
  custom: {
    50: '#e0c377',
    500: '#ccab3a',
    950: '#000000',
  },
}
SCSS
$custom: #ccab3a;
$custom-light: #e0c377;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab3a",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 46.438,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75064,
    "c": 0.13291,
    "h": 92.3
  },
  "luminance": 0.42269
}

Semantic roles & 50–950 ramp

primary
#CCAB3A
secondary
#919FD1
accent
#69E246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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