#CCAB3F#CCAB3F

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

Color values

HEX#CCAB3F
RGBrgb(204, 171, 63)
HSLhsl(46, 58%, 52%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 16.2%, 69.1%, 20%)
CIE-LABlab(71.09, 0.42, 57.74)
CIE-LCHlch(71.09, 57.74, 89.58°)
OKLaboklab(75.11% -0.0039 0.1295)
OKLCHoklch(75.11% 0.13 91.7)
XYZxyz(40.3641, 42.3244, 10.7450)
Luminance0.4232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB3F #3F60CC
analogous
#CC643F #CCAB3F #A7CC3F
triadic
#CCAB3F #3FCCAB #AB3FCC
tetradic
#CCAB3F #3FCC64 #3F60CC #CC3FA7
square
#CCAB3F #3FCC64 #3F60CC #CC3FA7
split-complementary
#CCAB3F #3FA7CC #643FCC
monochromatic
#725F1E #A3872B #CCAB3F #D9C06F #E6D5A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #ccab3f;
/* rgb */ color: rgb(204, 171, 63);
/* oklch */ color: oklch(75.1% 0.130 91.7);
Tailwind
colors: {
  custom: {
    50: '#dfc37a',
    500: '#ccab3f',
    950: '#000000',
  },
}
SCSS
$custom: #ccab3f;
$custom-light: #dfc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab3f",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 63
  },
  "hsl": {
    "h": 45.957,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75105,
    "c": 0.12954,
    "h": 91.7
  },
  "luminance": 0.42322
}

Semantic roles & 50–950 ramp

primary
#CCAB3F
secondary
#95A3D2
accent
#6BE147
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAB3F

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

Preview Lab → · Contrast checker → · Palette generator →

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