#CCB951#CCB951

#CCB951 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.2% C 0.126 H 99.0°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#CCB951
RGBrgb(204, 185, 81)
HSLhsl(51, 55%, 56%)
HSVhsv(51, 60%, 80%)
CMYKcmyk(0%, 9.3%, 60.3%, 20%)
CIE-LABlab(74.91, -5.82, 53.98)
CIE-LCHlch(74.91, 54.29, 96.16°)
OKLaboklab(78.17% -0.0197 0.1242)
OKLCHoklch(78.17% 0.126 99)
XYZxyz(43.7377, 48.1313, 14.7694)
Luminance0.4813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB951 #5164CC
analogous
#CC7B51 #CCB951 #A1CC51
triadic
#CCB951 #51CCB9 #B951CC
tetradic
#CCB951 #51CC7B #5164CC #CC51A1
square
#CCB951 #51CC7B #5164CC #CC51A1
split-complementary
#CCB951 #51A1CC #7B51CC
monochromatic
#7E7025 #AD9A33 #CCB951 #DACC80 #E8DFB0

Accessibility & contrast

On white

1.98
#CCB951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#CCB951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB951
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB951#FFFFFF#000000##000000
##CCB9511.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B446
Deuteranopia (green-blind)
#CFBB56
Tritanopia (blue-blind)
#DBADA2
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb951;
/* rgb */ color: rgb(204, 185, 81);
/* oklch */ color: oklch(78.2% 0.126 99.0);
Tailwind
colors: {
  custom: {
    50: '#decd86',
    500: '#ccb951',
    950: '#000000',
  },
}
SCSS
$custom: #ccb951;
$custom-light: #decd86;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb951",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 50.732,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.78171,
    "c": 0.1258,
    "h": 99
  },
  "luminance": 0.48129
}

Semantic roles & 50–950 ramp

primary
#CCB951
secondary
#A3ABD6
accent
#61DE4A
background
#FEFCF8
surface
#FCF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB951

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

Preview Lab → · Contrast checker → · Palette generator →

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