#CCAB46#CCAB46

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

Color values

HEX#CCAB46
RGBrgb(204, 171, 70)
HSLhsl(45, 57%, 54%)
HSVhsv(45, 66%, 80%)
CMYKcmyk(0%, 16.2%, 65.7%, 20%)
CIE-LABlab(71.15, 0.82, 54.80)
CIE-LCHlch(71.15, 54.80, 89.14°)
OKLaboklab(75.17% -0.0019 0.1244)
OKLCHoklch(75.17% 0.124 90.9)
XYZxyz(40.5723, 42.4077, 11.8416)
Luminance0.4240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB46 #4667CC
analogous
#CC6846 #CCAB46 #AACC46
triadic
#CCAB46 #46CCAB #AB46CC
tetradic
#CCAB46 #46CC68 #4667CC #CC46AA
square
#CCAB46 #46CC68 #4667CC #CC46AA
split-complementary
#CCAB46 #46AACC #6846CC
monochromatic
#776221 #A7892E #CCAB46 #D9C176 #E6D7A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAB46#FFFFFF#000000##000000
##CCAB461.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)
#BDA93A
Deuteranopia (green-blind)
#C5B24B
Tritanopia (blue-blind)
#DC9E96
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab46;
/* rgb */ color: rgb(204, 171, 70);
/* oklch */ color: oklch(75.2% 0.124 90.9);
Tailwind
colors: {
  custom: {
    50: '#dfc37e',
    500: '#ccab46',
    950: '#000000',
  },
}
SCSS
$custom: #ccab46;
$custom-light: #dfc37e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab46",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 70
  },
  "hsl": {
    "h": 45.224,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.75168,
    "c": 0.12442,
    "h": 90.9
  },
  "luminance": 0.42405
}

Semantic roles & 50–950 ramp

primary
#CCAB46
secondary
#9AA8D4
accent
#6DE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAB46

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

Preview Lab → · Contrast checker → · Palette generator →

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