#CCAF54#CCAF54

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

Color values

HEX#CCAF54
RGBrgb(204, 175, 84)
HSLhsl(46, 54%, 56%)
HSVhsv(46, 59%, 80%)
CMYKcmyk(0%, 14.2%, 58.8%, 20%)
CIE-LABlab(72.32, -0.36, 49.67)
CIE-LCHlch(72.32, 49.67, 90.42°)
OKLaboklab(76.13% -0.0036 0.1154)
OKLCHoklch(76.13% 0.115 91.8)
XYZxyz(41.8339, 44.1395, 14.7021)
Luminance0.4414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF54 #5471CC
analogous
#CC7354 #CCAF54 #ADCC54
triadic
#CCAF54 #54CCAF #AF54CC
tetradic
#CCAF54 #54CC73 #5471CC #CC54AD
square
#CCAF54 #54CC73 #5471CC #CC54AD
split-complementary
#CCAF54 #54ADCC #7354CC
monochromatic
#806A26 #AF9134 #CCAF54 #DAC583 #E8DBB2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCAF54#FFFFFF#000000##000000
##CCAF541.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)
#C0AC4B
Deuteranopia (green-blind)
#C7B558
Tritanopia (blue-blind)
#DBA39B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf54;
/* rgb */ color: rgb(204, 175, 84);
/* oklch */ color: oklch(76.1% 0.115 91.8);
Tailwind
colors: {
  custom: {
    50: '#dec687',
    500: '#ccaf54',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf54;
$custom-light: #dec687;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf54",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 84
  },
  "hsl": {
    "h": 45.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.76135,
    "c": 0.11546,
    "h": 91.8
  },
  "luminance": 0.44137
}

Semantic roles & 50–950 ramp

primary
#CCAF54
secondary
#A5B1D7
accent
#6EDD4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCAF54

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

Preview Lab → · Contrast checker → · Palette generator →

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