#CCAC3F#CCAC3F

#CCAC3F is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.3% C 0.130 H 92.4°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#CCAC3F
RGBrgb(204, 172, 63)
HSLhsl(46, 58%, 52%)
HSVhsv(46, 69%, 80%)
CMYKcmyk(0%, 15.7%, 69.1%, 20%)
CIE-LABlab(71.35, -0.11, 58.01)
CIE-LCHlch(71.35, 58.01, 90.11°)
OKLaboklab(75.31% -0.0055 0.13)
OKLCHoklch(75.31% 0.13 92.4)
XYZxyz(40.5537, 42.7036, 10.8082)
Luminance0.4270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC3F #3F5FCC
analogous
#CC663F #CCAC3F #A6CC3F
triadic
#CCAC3F #3FCCAC #AC3FCC
tetradic
#CCAC3F #3FCC66 #3F5FCC #CC3FA6
square
#CCAC3F #3FCC66 #3F5FCC #CC3FA6
split-complementary
#CCAC3F #3FA6CC #663FCC
monochromatic
#725F1E #A3882B #CCAC3F #D9C16F #E6D6A0

Accessibility & contrast

On white

2.20
#CCAC3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#CCAC3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAC3F
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAC3F#FFFFFF#000000##000000
##CCAC3F1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA930
Deuteranopia (green-blind)
#C6B345
Tritanopia (blue-blind)
#DC9E96
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ccac3f;
/* rgb */ color: rgb(204, 172, 63);
/* oklch */ color: oklch(75.3% 0.130 92.4);
Tailwind
colors: {
  custom: {
    50: '#dfc47a',
    500: '#ccac3f',
    950: '#000000',
  },
}
SCSS
$custom: #ccac3f;
$custom-light: #dfc47a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac3f",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 63
  },
  "hsl": {
    "h": 46.383,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7531,
    "c": 0.13015,
    "h": 92.4
  },
  "luminance": 0.42701
}

Semantic roles & 50–950 ramp

primary
#CCAC3F
secondary
#95A3D2
accent
#6AE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCAC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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