#CCAC3E#CCAC3E

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

Color values

HEX#CCAC3E
RGBrgb(204, 172, 62)
HSLhsl(46, 58%, 52%)
HSVhsv(46, 70%, 80%)
CMYKcmyk(0%, 15.7%, 69.6%, 20%)
CIE-LABlab(71.35, -0.16, 58.41)
CIE-LCHlch(71.35, 58.41, 90.16°)
OKLaboklab(75.3% -0.0057 0.1307)
OKLCHoklch(75.3% 0.131 92.5)
XYZxyz(40.5260, 42.6925, 10.6624)
Luminance0.4269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAC3E #3E5ECC
analogous
#CC653E #CCAC3E #A5CC3E
triadic
#CCAC3E #3ECCAC #AC3ECC
tetradic
#CCAC3E #3ECC65 #3E5ECC #CC3EA5
square
#CCAC3E #3ECC65 #3E5ECC #CC3EA5
split-complementary
#CCAC3E #3EA5CC #653ECC
monochromatic
#725F1E #A2872B #CCAC3E #D9C16E #E6D69F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAC3E#FFFFFF#000000##000000
##CCAC3E1.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)
#BEA92F
Deuteranopia (green-blind)
#C6B344
Tritanopia (blue-blind)
#DC9E95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ccac3e;
/* rgb */ color: rgb(204, 172, 62);
/* oklch */ color: oklch(75.3% 0.131 92.5);
Tailwind
colors: {
  custom: {
    50: '#dfc479',
    500: '#ccac3e',
    950: '#000000',
  },
}
SCSS
$custom: #ccac3e;
$custom-light: #dfc479;
$custom-dark: #000000;
JSON
{
  "hex": "#ccac3e",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 62
  },
  "hsl": {
    "h": 46.479,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75301,
    "c": 0.13086,
    "h": 92.5
  },
  "luminance": 0.4269
}

Semantic roles & 50–950 ramp

primary
#CCAC3E
secondary
#94A2D2
accent
#69E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAC3E

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

Preview Lab → · Contrast checker → · Palette generator →

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