#CCAF47#CCAF47

#CCAF47 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.126 H 93.5°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#CCAF47
RGBrgb(204, 175, 71)
HSLhsl(47, 57%, 54%)
HSVhsv(47, 65%, 80%)
CMYKcmyk(0%, 14.2%, 65.2%, 20%)
CIE-LABlab(72.20, -1.24, 55.48)
CIE-LCHlch(72.20, 55.49, 91.28°)
OKLaboklab(76% -0.0077 0.126)
OKLCHoklch(76% 0.126 93.5)
XYZxyz(41.3711, 43.9544, 12.2649)
Luminance0.4395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF47 #4764CC
analogous
#CC6D47 #CCAF47 #A7CC47
triadic
#CCAF47 #47CCAF #AF47CC
tetradic
#CCAF47 #47CC6D #4764CC #CC47A7
square
#CCAF47 #47CC6D #4764CC #CC47A7
split-complementary
#CCAF47 #47A7CC #6D47CC
monochromatic
#776521 #A78D2E #CCAF47 #D9C477 #E7D9A7

Accessibility & contrast

On white

2.14
#CCAF47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#CCAF47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF47
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF47#FFFFFF#000000##000000
##CCAF471.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC3B
Deuteranopia (green-blind)
#C8B54C
Tritanopia (blue-blind)
#DCA299
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf47;
/* rgb */ color: rgb(204, 175, 71);
/* oklch */ color: oklch(76.0% 0.126 93.5);
Tailwind
colors: {
  custom: {
    50: '#dfc67f',
    500: '#ccaf47',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf47;
$custom-light: #dfc67f;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf47",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 71
  },
  "hsl": {
    "h": 46.917,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.75998,
    "c": 0.12624,
    "h": 93.5
  },
  "luminance": 0.43952
}

Semantic roles & 50–950 ramp

primary
#CCAF47
secondary
#9BA7D4
accent
#69E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCAF47

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

Preview Lab → · Contrast checker → · Palette generator →

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