#CCAB47#CCAB47

#CCAB47 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 75.2% C 0.124 H 90.8°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#CCAB47
RGBrgb(204, 171, 71)
HSLhsl(45, 57%, 54%)
HSVhsv(45, 65%, 80%)
CMYKcmyk(0%, 16.2%, 65.2%, 20%)
CIE-LABlab(71.16, 0.88, 54.36)
CIE-LCHlch(71.16, 54.37, 89.07°)
OKLaboklab(75.18% -0.0016 0.1236)
OKLCHoklch(75.18% 0.124 90.8)
XYZxyz(40.6041, 42.4204, 12.0093)
Luminance0.4242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB47 #4768CC
analogous
#CC6947 #CCAB47 #ABCC47
triadic
#CCAB47 #47CCAB #AB47CC
tetradic
#CCAB47 #47CC69 #4768CC #CC47AB
square
#CCAB47 #47CC69 #4768CC #CC47AB
split-complementary
#CCAB47 #47ABCC #6947CC
monochromatic
#776221 #A7892E #CCAB47 #D9C177 #E7D7A7

Accessibility & contrast

On white

2.21
#CCAB47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#CCAB47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAB47
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAB47#FFFFFF#000000##000000
##CCAB471.002.219.489.48
#FFFFFF2.211.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA93B
Deuteranopia (green-blind)
#C5B24C
Tritanopia (blue-blind)
#DC9E96
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab47;
/* rgb */ color: rgb(204, 171, 71);
/* oklch */ color: oklch(75.2% 0.124 90.8);
Tailwind
colors: {
  custom: {
    50: '#dfc37f',
    500: '#ccab47',
    950: '#000000',
  },
}
SCSS
$custom: #ccab47;
$custom-light: #dfc37f;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab47",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 71
  },
  "hsl": {
    "h": 45.113,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.75178,
    "c": 0.12365,
    "h": 90.8
  },
  "luminance": 0.42418
}

Semantic roles & 50–950 ramp

primary
#CCAB47
secondary
#9BA9D4
accent
#6EE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAB47

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

Preview Lab → · Contrast checker → · Palette generator →

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