#CCB151#CCB151

#CCB151 is a light, moderate yellow. Relative luminance 0.449; OKLCH L 76.5% C 0.119 H 93.7°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CCB151
RGBrgb(204, 177, 81)
HSLhsl(47, 55%, 56%)
HSVhsv(47, 60%, 80%)
CMYKcmyk(0%, 13.2%, 60.3%, 20%)
CIE-LABlab(72.81, -1.63, 51.63)
CIE-LCHlch(72.81, 51.66, 91.81°)
OKLaboklab(76.51% -0.0077 0.1192)
OKLCHoklch(76.51% 0.119 93.7)
XYZxyz(42.1110, 44.8778, 14.2272)
Luminance0.4488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB151 #516CCC
analogous
#CC7351 #CCB151 #AACC51
triadic
#CCB151 #51CCB1 #B151CC
tetradic
#CCB151 #51CC73 #516CCC #CC51AA
square
#CCB151 #51CC73 #516CCC #CC51AA
split-complementary
#CCB151 #51AACC #7351CC
monochromatic
#7E6A25 #AD9233 #CCB151 #DAC680 #E8DBB0

Accessibility & contrast

On white

2.11
#CCB151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CCB151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB151
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB151#FFFFFF#000000##000000
##CCB1511.002.119.989.98
#FFFFFF2.111.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE47
Deuteranopia (green-blind)
#C9B655
Tritanopia (blue-blind)
#DBA59C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb151;
/* rgb */ color: rgb(204, 177, 81);
/* oklch */ color: oklch(76.5% 0.119 93.7);
Tailwind
colors: {
  custom: {
    50: '#dec885',
    500: '#ccb151',
    950: '#000000',
  },
}
SCSS
$custom: #ccb151;
$custom-light: #dec885;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb151",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 46.829,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.76512,
    "c": 0.11948,
    "h": 93.7
  },
  "luminance": 0.44876
}

Semantic roles & 50–950 ramp

primary
#CCB151
secondary
#A3AED6
accent
#6ADE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB151

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

Preview Lab → · Contrast checker → · Palette generator →

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