#CCAF3A#CCAF3A

#CCAF3A is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.9% C 0.135 H 94.8°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#CCAF3A
RGBrgb(204, 175, 58)
HSLhsl(48, 59%, 51%)
HSVhsv(48, 72%, 80%)
CMYKcmyk(0%, 14.2%, 71.6%, 20%)
CIE-LABlab(72.10, -1.95, 60.77)
CIE-LCHlch(72.10, 60.80, 91.84°)
OKLaboklab(75.89% -0.0113 0.135)
OKLCHoklch(75.89% 0.135 94.8)
XYZxyz(40.9976, 43.8050, 10.2980)
Luminance0.4380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF3A #3A57CC
analogous
#CC663A #CCAF3A #A0CC3A
triadic
#CCAF3A #3ACCAF #AF3ACC
tetradic
#CCAF3A #3ACC66 #3A57CC #CC3AA0
square
#CCAF3A #3ACC66 #3A57CC #CC3AA0
split-complementary
#CCAF3A #3AA0CC #663ACC
monochromatic
#6F5F1D #A08829 #CCAF3A #D9C36B #E5D69B

Accessibility & contrast

On white

2.15
#CCAF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#CCAF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF3A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF3A#FFFFFF#000000##000000
##CCAF3A1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC28
Deuteranopia (green-blind)
#C9B541
Tritanopia (blue-blind)
#DCA198
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf3a;
/* rgb */ color: rgb(204, 175, 58);
/* oklch */ color: oklch(75.9% 0.135 94.8);
Tailwind
colors: {
  custom: {
    50: '#dfc677',
    500: '#ccaf3a',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf3a;
$custom-light: #dfc677;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf3a",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 48.082,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.75887,
    "c": 0.13547,
    "h": 94.8
  },
  "luminance": 0.43803
}

Semantic roles & 50–950 ramp

primary
#CCAF3A
secondary
#919ED1
accent
#65E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCAF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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