#CCAF51#CCAF51

#CCAF51 is a light, moderate yellow. Relative luminance 0.441; OKLCH L 76.1% C 0.118 H 92.2°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#CCAF51
RGBrgb(204, 175, 81)
HSLhsl(46, 55%, 56%)
HSVhsv(46, 60%, 80%)
CMYKcmyk(0%, 14.2%, 60.3%, 20%)
CIE-LABlab(72.29, -0.58, 51.05)
CIE-LCHlch(72.29, 51.05, 90.65°)
OKLaboklab(76.1% -0.0046 0.118)
OKLCHoklch(76.1% 0.118 92.2)
XYZxyz(41.7189, 44.0935, 14.0964)
Luminance0.4409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF51 #516ECC
analogous
#CC7151 #CCAF51 #ABCC51
triadic
#CCAF51 #51CCAF #AF51CC
tetradic
#CCAF51 #51CC71 #516ECC #CC51AB
square
#CCAF51 #51CC71 #516ECC #CC51AB
split-complementary
#CCAF51 #51ABCC #7151CC
monochromatic
#7E6925 #AD9033 #CCAF51 #DAC580 #E8DBB0

Accessibility & contrast

On white

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

On black

9.82
#CCAF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF51
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF51#FFFFFF#000000##000000
##CCAF511.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC47
Deuteranopia (green-blind)
#C7B555
Tritanopia (blue-blind)
#DBA39A
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf51;
/* rgb */ color: rgb(204, 175, 81);
/* oklch */ color: oklch(76.1% 0.118 92.2);
Tailwind
colors: {
  custom: {
    50: '#dec685',
    500: '#ccaf51',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf51;
$custom-light: #dec685;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf51",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 81
  },
  "hsl": {
    "h": 45.854,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.76101,
    "c": 0.11807,
    "h": 92.2
  },
  "luminance": 0.44091
}

Semantic roles & 50–950 ramp

primary
#CCAF51
secondary
#A3AFD6
accent
#6DDE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCAF51

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

Preview Lab → · Contrast checker → · Palette generator →

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