#CCAF40#CCAF40

#CCAF40 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.9% C 0.131 H 94.2°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#CCAF40
RGBrgb(204, 175, 64)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 69%, 80%)
CMYKcmyk(0%, 14.2%, 68.6%, 20%)
CIE-LABlab(72.14, -1.64, 58.40)
CIE-LCHlch(72.14, 58.42, 91.61°)
OKLaboklab(75.94% -0.0097 0.1311)
OKLCHoklch(75.94% 0.131 94.2)
XYZxyz(41.1593, 43.8697, 11.1492)
Luminance0.4387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF40 #405DCC
analogous
#CC6940 #CCAF40 #A3CC40
triadic
#CCAF40 #40CCAF #AF40CC
tetradic
#CCAF40 #40CC69 #405DCC #CC40A3
square
#CCAF40 #40CC69 #405DCC #CC40A3
split-complementary
#CCAF40 #40A3CC #6940CC
monochromatic
#73611F #A38A2C #CCAF40 #D9C370 #E6D7A1

Accessibility & contrast

On white

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

On black

9.77
#CCAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF40
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF40#FFFFFF#000000##000000
##CCAF401.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccaf40;
/* rgb */ color: rgb(204, 175, 64);
/* oklch */ color: oklch(75.9% 0.131 94.2);
Tailwind
colors: {
  custom: {
    50: '#dfc67b',
    500: '#ccaf40',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf40;
$custom-light: #dfc67b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf40",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 47.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75935,
    "c": 0.13141,
    "h": 94.2
  },
  "luminance": 0.43867
}

Semantic roles & 50–950 ramp

primary
#CCAF40
secondary
#95A2D2
accent
#67E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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