#CCAF3C#CCAF3C

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

Color values

HEX#CCAF3C
RGBrgb(204, 175, 60)
HSLhsl(48, 59%, 52%)
HSVhsv(48, 71%, 80%)
CMYKcmyk(0%, 14.2%, 70.6%, 20%)
CIE-LABlab(72.11, -1.85, 60.00)
CIE-LCHlch(72.11, 60.02, 91.77°)
OKLaboklab(75.9% -0.0108 0.1337)
OKLCHoklch(75.9% 0.134 94.6)
XYZxyz(41.0495, 43.8258, 10.5711)
Luminance0.4382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF3C #3C59CC
analogous
#CC673C #CCAF3C #A1CC3C
triadic
#CCAF3C #3CCCAF #AF3CCC
tetradic
#CCAF3C #3CCC67 #3C59CC #CC3CA1
square
#CCAF3C #3CCC67 #3C59CC #CC3CA1
split-complementary
#CCAF3C #3CA1CC #673CCC
monochromatic
#70601D #A1892A #CCAF3C #D9C36D #E5D79D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAF3C#FFFFFF#000000##000000
##CCAF3C1.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)
#C1AC2B
Deuteranopia (green-blind)
#C8B542
Tritanopia (blue-blind)
#DCA198
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf3c;
/* rgb */ color: rgb(204, 175, 60);
/* oklch */ color: oklch(75.9% 0.134 94.6);
Tailwind
colors: {
  custom: {
    50: '#dfc678',
    500: '#ccaf3c',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf3c;
$custom-light: #dfc678;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf3c",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 60
  },
  "hsl": {
    "h": 47.917,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.75902,
    "c": 0.13415,
    "h": 94.6
  },
  "luminance": 0.43824
}

Semantic roles & 50–950 ramp

primary
#CCAF3C
secondary
#929FD1
accent
#65E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCAF3C

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

Preview Lab → · Contrast checker → · Palette generator →

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