#CCAB3E#CCAB3E

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

Color values

HEX#CCAB3E
RGBrgb(204, 171, 62)
HSLhsl(46, 58%, 52%)
HSVhsv(46, 70%, 80%)
CMYKcmyk(0%, 16.2%, 69.6%, 20%)
CIE-LABlab(71.09, 0.37, 58.15)
CIE-LCHlch(71.09, 58.15, 89.64°)
OKLaboklab(75.1% -0.0042 0.1302)
OKLCHoklch(75.1% 0.13 91.8)
XYZxyz(40.3364, 42.3133, 10.5992)
Luminance0.4231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB3E #3E5FCC
analogous
#CC643E #CCAB3E #A6CC3E
triadic
#CCAB3E #3ECCAB #AB3ECC
tetradic
#CCAB3E #3ECC64 #3E5FCC #CC3EA6
square
#CCAB3E #3ECC64 #3E5FCC #CC3EA6
split-complementary
#CCAB3E #3EA6CC #643ECC
monochromatic
#725E1E #A2862B #CCAB3E #D9C06E #E6D59F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAB3E#FFFFFF#000000##000000
##CCAB3E1.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)
#BDA82F
Deuteranopia (green-blind)
#C5B244
Tritanopia (blue-blind)
#DC9D95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab3e;
/* rgb */ color: rgb(204, 171, 62);
/* oklch */ color: oklch(75.1% 0.130 91.8);
Tailwind
colors: {
  custom: {
    50: '#dfc379',
    500: '#ccab3e',
    950: '#000000',
  },
}
SCSS
$custom: #ccab3e;
$custom-light: #dfc379;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab3e",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 62
  },
  "hsl": {
    "h": 46.056,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75097,
    "c": 0.13024,
    "h": 91.8
  },
  "luminance": 0.42311
}

Semantic roles & 50–950 ramp

primary
#CCAB3E
secondary
#94A2D2
accent
#6AE146
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAB3E

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

Preview Lab → · Contrast checker → · Palette generator →

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