#CCAF3B#CCAF3B

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

Color values

HEX#CCAF3B
RGBrgb(204, 175, 59)
HSLhsl(48, 59%, 52%)
HSVhsv(48, 71%, 80%)
CMYKcmyk(0%, 14.2%, 71.1%, 20%)
CIE-LABlab(72.10, -1.90, 60.38)
CIE-LCHlch(72.10, 60.41, 91.80°)
OKLaboklab(75.89% -0.0111 0.1344)
OKLCHoklch(75.89% 0.135 94.7)
XYZxyz(41.0233, 43.8153, 10.4332)
Luminance0.4381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF3B #3B58CC
analogous
#CC673B #CCAF3B #A1CC3B
triadic
#CCAF3B #3BCCAF #AF3BCC
tetradic
#CCAF3B #3BCC67 #3B58CC #CC3BA1
square
#CCAF3B #3BCC67 #3B58CC #CC3BA1
split-complementary
#CCAF3B #3BA1CC #673BCC
monochromatic
#705F1D #A0882A #CCAF3B #D9C36C #E5D79C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAF3B#FFFFFF#000000##000000
##CCAF3B1.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)
#C1AC2A
Deuteranopia (green-blind)
#C8B541
Tritanopia (blue-blind)
#DCA198
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf3b;
/* rgb */ color: rgb(204, 175, 59);
/* oklch */ color: oklch(75.9% 0.135 94.7);
Tailwind
colors: {
  custom: {
    50: '#dfc678',
    500: '#ccaf3b',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf3b;
$custom-light: #dfc678;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf3b",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 59
  },
  "hsl": {
    "h": 48,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75894,
    "c": 0.13482,
    "h": 94.7
  },
  "luminance": 0.43813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCAF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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