#CCAF56#CCAF56

#CCAF56 is a light, moderate yellow. Relative luminance 0.442; OKLCH L 76.2% C 0.114 H 91.5°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#CCAF56
RGBrgb(204, 175, 86)
HSLhsl(45, 54%, 57%)
HSVhsv(45, 58%, 80%)
CMYKcmyk(0%, 14.2%, 57.8%, 20%)
CIE-LABlab(72.34, -0.21, 48.75)
CIE-LCHlch(72.34, 48.75, 90.25°)
OKLaboklab(76.16% -0.003 0.1136)
OKLCHoklch(76.16% 0.114 91.5)
XYZxyz(41.9133, 44.1713, 15.1205)
Luminance0.4417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF56 #5673CC
analogous
#CC7456 #CCAF56 #AECC56
triadic
#CCAF56 #56CCAF #AF56CC
tetradic
#CCAF56 #56CC74 #5673CC #CC56AE
square
#CCAF56 #56CC74 #5673CC #CC56AE
split-complementary
#CCAF56 #56AECC #7456CC
monochromatic
#816B27 #B09235 #CCAF56 #DAC585 #E8DCB4

Accessibility & contrast

On white

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

On black

9.83
#CCAF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF56
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF56#FFFFFF#000000##000000
##CCAF561.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AD4D
Deuteranopia (green-blind)
#C7B55A
Tritanopia (blue-blind)
#DBA39B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf56;
/* rgb */ color: rgb(204, 175, 86);
/* oklch */ color: oklch(76.2% 0.114 91.5);
Tailwind
colors: {
  custom: {
    50: '#dec688',
    500: '#ccaf56',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf56;
$custom-light: #dec688;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf56",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 86
  },
  "hsl": {
    "h": 45.254,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.76159,
    "c": 0.11367,
    "h": 91.5
  },
  "luminance": 0.44169
}

Semantic roles & 50–950 ramp

primary
#CCAF56
secondary
#A7B3D7
accent
#6FDD4B
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#15130C
muted
#84827D

Preview Lab

Preview with #CCAF56

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

Preview Lab → · Contrast checker → · Palette generator →

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