#CCAB3B#CCAB3B

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

Color values

HEX#CCAB3B
RGBrgb(204, 171, 59)
HSLhsl(46, 59%, 52%)
HSVhsv(46, 71%, 80%)
CMYKcmyk(0%, 16.2%, 71.1%, 20%)
CIE-LABlab(71.06, 0.22, 59.34)
CIE-LCHlch(71.06, 59.35, 89.79°)
OKLaboklab(75.07% -0.005 0.1322)
OKLCHoklch(75.07% 0.132 92.2)
XYZxyz(40.2563, 42.2813, 10.1776)
Luminance0.4228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB3B #3B5CCC
analogous
#CC633B #CCAB3B #A5CC3B
triadic
#CCAB3B #3BCCAB #AB3BCC
tetradic
#CCAB3B #3BCC63 #3B5CCC #CC3BA5
square
#CCAB3B #3BCC63 #3B5CCC #CC3BA5
split-complementary
#CCAB3B #3BA5CC #633BCC
monochromatic
#705D1D #A0852A #CCAB3B #D9C06C #E5D59C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAB3B#FFFFFF#000000##000000
##CCAB3B1.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)
#BDA82B
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#DC9D94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab3b;
/* rgb */ color: rgb(204, 171, 59);
/* oklch */ color: oklch(75.1% 0.132 92.2);
Tailwind
colors: {
  custom: {
    50: '#dfc378',
    500: '#ccab3b',
    950: '#000000',
  },
}
SCSS
$custom: #ccab3b;
$custom-light: #dfc378;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab3b",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 59
  },
  "hsl": {
    "h": 46.345,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75072,
    "c": 0.13225,
    "h": 92.2
  },
  "luminance": 0.42279
}

Semantic roles & 50–950 ramp

primary
#CCAB3B
secondary
#92A0D1
accent
#69E246
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAB3B

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

Preview Lab → · Contrast checker → · Palette generator →

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