#CCAF42#CCAF42

#CCAF42 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 76.0% C 0.130 H 94.0°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#CCAF42
RGBrgb(204, 175, 66)
HSLhsl(47, 58%, 53%)
HSVhsv(47, 68%, 80%)
CMYKcmyk(0%, 14.2%, 67.6%, 20%)
CIE-LABlab(72.16, -1.53, 57.58)
CIE-LCHlch(72.16, 57.60, 91.52°)
OKLaboklab(75.95% -0.0092 0.1297)
OKLCHoklch(75.95% 0.13 94)
XYZxyz(41.2172, 43.8929, 11.4544)
Luminance0.4389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF42 #425FCC
analogous
#CC6A42 #CCAF42 #A4CC42
triadic
#CCAF42 #42CCAF #AF42CC
tetradic
#CCAF42 #42CC6A #425FCC #CC42A4
square
#CCAF42 #42CC6A #425FCC #CC42A4
split-complementary
#CCAF42 #42A4CC #6A42CC
monochromatic
#74621F #A48B2C #CCAF42 #D9C372 #E6D8A2

Accessibility & contrast

On white

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

On black

9.78
#CCAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF42
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF42#FFFFFF#000000##000000
##CCAF421.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C8B548
Tritanopia (blue-blind)
#DCA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf42;
/* rgb */ color: rgb(204, 175, 66);
/* oklch */ color: oklch(76.0% 0.130 94.0);
Tailwind
colors: {
  custom: {
    50: '#dfc67c',
    500: '#ccaf42',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf42;
$custom-light: #dfc67c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf42",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 47.391,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.75952,
    "c": 0.12998,
    "h": 94
  },
  "luminance": 0.43891
}

Semantic roles & 50–950 ramp

primary
#CCAF42
secondary
#97A4D3
accent
#67E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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