#CCB962#CCB962

#CCB962 is a light, moderate yellow. Relative luminance 0.484; OKLCH L 78.4% C 0.110 H 97.3°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#CCB962
RGBrgb(204, 185, 98)
HSLhsl(49, 51%, 59%)
HSVhsv(49, 52%, 80%)
CMYKcmyk(0%, 9.3%, 52%, 20%)
CIE-LABlab(75.09, -4.50, 46.16)
CIE-LCHlch(75.09, 46.38, 95.57°)
OKLaboklab(78.37% -0.014 0.1093)
OKLCHoklch(78.37% 0.11 97.3)
XYZxyz(44.4569, 48.4189, 18.5569)
Luminance0.4842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB962 #6275CC
analogous
#CC8462 #CCB962 #AACC62
triadic
#CCB962 #62CCB9 #B962CC
tetradic
#CCB962 #62CC84 #6275CC #CC62AA
square
#CCB962 #62CC84 #6275CC #CC62AA
split-complementary
#CCB962 #62AACC #8462CC
monochromatic
#88772C #B6A03B #CCB962 #DBCE90 #EAE2BE

Accessibility & contrast

On white

1.97
#CCB962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#CCB962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB962
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB962#FFFFFF#000000##000000
##CCB9621.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B55A
Deuteranopia (green-blind)
#CDBC66
Tritanopia (blue-blind)
#DAAEA5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccb962;
/* rgb */ color: rgb(204, 185, 98);
/* oklch */ color: oklch(78.4% 0.110 97.3);
Tailwind
colors: {
  custom: {
    50: '#decd91',
    500: '#ccb962',
    950: '#000000',
  },
}
SCSS
$custom: #ccb962;
$custom-light: #decd91;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb962",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 98
  },
  "hsl": {
    "h": 49.245,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.78372,
    "c": 0.11014,
    "h": 97.3
  },
  "luminance": 0.48417
}

Semantic roles & 50–950 ramp

primary
#CCB962
secondary
#B0B8DA
accent
#67DA4D
background
#FDFCF9
surface
#FBF9F1
border
#D4D2CB
text
#15130D
muted
#83827E

Preview Lab

Preview with #CCB962

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

Preview Lab → · Contrast checker → · Palette generator →

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