#CCAF39#CCAF39

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

Color values

HEX#CCAF39
RGBrgb(204, 175, 57)
HSLhsl(48, 59%, 51%)
HSVhsv(48, 72%, 80%)
CMYKcmyk(0%, 14.2%, 72.1%, 20%)
CIE-LABlab(72.09, -2.00, 61.15)
CIE-LCHlch(72.09, 61.18, 91.87°)
OKLaboklab(75.88% -0.0115 0.1356)
OKLCHoklch(75.88% 0.136 94.9)
XYZxyz(40.9725, 43.7950, 10.1653)
Luminance0.4379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF39 #3956CC
analogous
#CC6539 #CCAF39 #9FCC39
triadic
#CCAF39 #39CCAF #AF39CC
tetradic
#CCAF39 #39CC65 #3956CC #CC399F
square
#CCAF39 #39CC65 #3956CC #CC399F
split-complementary
#CCAF39 #399FCC #6539CC
monochromatic
#6E5E1C #9F8829 #CCAF39 #D9C36A #E5D69A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAF39#FFFFFF#000000##000000
##CCAF391.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)
#C1AC27
Deuteranopia (green-blind)
#C9B540
Tritanopia (blue-blind)
#DCA197
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf39;
/* rgb */ color: rgb(204, 175, 57);
/* oklch */ color: oklch(75.9% 0.136 94.9);
Tailwind
colors: {
  custom: {
    50: '#dfc677',
    500: '#ccaf39',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf39;
$custom-light: #dfc677;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf39",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 57
  },
  "hsl": {
    "h": 48.163,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75879,
    "c": 0.13611,
    "h": 94.9
  },
  "luminance": 0.43793
}

Semantic roles & 50–950 ramp

primary
#CCAF39
secondary
#909DD1
accent
#64E246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCAF39

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

Preview Lab → · Contrast checker → · Palette generator →

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