#CCAF52#CCAF52

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

Color values

HEX#CCAF52
RGBrgb(204, 175, 82)
HSLhsl(46, 54%, 56%)
HSVhsv(46, 60%, 80%)
CMYKcmyk(0%, 14.2%, 59.8%, 20%)
CIE-LABlab(72.30, -0.51, 50.59)
CIE-LCHlch(72.30, 50.60, 90.57°)
OKLaboklab(76.11% -0.0043 0.1171)
OKLCHoklch(76.11% 0.117 92.1)
XYZxyz(41.7567, 44.1087, 14.2954)
Luminance0.4411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF52 #526FCC
analogous
#CC7252 #CCAF52 #ACCC52
triadic
#CCAF52 #52CCAF #AF52CC
tetradic
#CCAF52 #52CC72 #526FCC #CC52AC
square
#CCAF52 #52CC72 #526FCC #CC52AC
split-complementary
#CCAF52 #52ACCC #7252CC
monochromatic
#7E6925 #AE9133 #CCAF52 #DAC581 #E8DBB1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAF52#FFFFFF#000000##000000
##CCAF521.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)
#C0AC49
Deuteranopia (green-blind)
#C7B556
Tritanopia (blue-blind)
#DBA39A
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf52;
/* rgb */ color: rgb(204, 175, 82);
/* oklch */ color: oklch(76.1% 0.117 92.1);
Tailwind
colors: {
  custom: {
    50: '#dec686',
    500: '#ccaf52',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf52;
$custom-light: #dec686;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf52",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 82
  },
  "hsl": {
    "h": 45.738,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.76112,
    "c": 0.11721,
    "h": 92.1
  },
  "luminance": 0.44107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCAF52

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

Preview Lab → · Contrast checker → · Palette generator →

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