#CCAF3D#CCAF3D

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

Color values

HEX#CCAF3D
RGBrgb(204, 175, 61)
HSLhsl(48, 58%, 52%)
HSVhsv(48, 70%, 80%)
CMYKcmyk(0%, 14.2%, 70.1%, 20%)
CIE-LABlab(72.12, -1.80, 59.60)
CIE-LCHlch(72.12, 59.63, 91.73°)
OKLaboklab(75.91% -0.0105 0.1331)
OKLCHoklch(75.91% 0.133 94.5)
XYZxyz(41.0762, 43.8365, 10.7117)
Luminance0.4383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF3D #3D5ACC
analogous
#CC683D #CCAF3D #A2CC3D
triadic
#CCAF3D #3DCCAF #AF3DCC
tetradic
#CCAF3D #3DCC68 #3D5ACC #CC3DA2
square
#CCAF3D #3DCC68 #3D5ACC #CC3DA2
split-complementary
#CCAF3D #3DA2CC #683DCC
monochromatic
#71601E #A1892A #CCAF3D #D9C36D #E5D79E

Accessibility & contrast

On white

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

On black

9.77
#CCAF3D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF3D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF3D#FFFFFF#000000##000000
##CCAF3D1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC2D
Deuteranopia (green-blind)
#C8B543
Tritanopia (blue-blind)
#DCA198
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf3d;
/* rgb */ color: rgb(204, 175, 61);
/* oklch */ color: oklch(75.9% 0.133 94.5);
Tailwind
colors: {
  custom: {
    50: '#dfc679',
    500: '#ccaf3d',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf3d;
$custom-light: #dfc679;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf3d",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 61
  },
  "hsl": {
    "h": 47.832,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.7591,
    "c": 0.13349,
    "h": 94.5
  },
  "luminance": 0.43834
}

Semantic roles & 50–950 ramp

primary
#CCAF3D
secondary
#93A0D2
accent
#66E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCAF3D

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

Preview Lab → · Contrast checker → · Palette generator →

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