#CCB152#CCB152

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

Color values

HEX#CCB152
RGBrgb(204, 177, 82)
HSLhsl(47, 54%, 56%)
HSVhsv(47, 60%, 80%)
CMYKcmyk(0%, 13.2%, 59.8%, 20%)
CIE-LABlab(72.82, -1.56, 51.18)
CIE-LCHlch(72.82, 51.20, 91.75°)
OKLaboklab(76.52% -0.0073 0.1184)
OKLCHoklch(76.52% 0.119 93.6)
XYZxyz(42.1488, 44.8929, 14.4261)
Luminance0.4489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB152 #526DCC
analogous
#CC7452 #CCB152 #AACC52
triadic
#CCB152 #52CCB1 #B152CC
tetradic
#CCB152 #52CC74 #526DCC #CC52AA
square
#CCB152 #52CC74 #526DCC #CC52AA
split-complementary
#CCB152 #52AACC #7452CC
monochromatic
#7E6B25 #AE9333 #CCB152 #DAC681 #E8DCB1

Accessibility & contrast

On white

2.10
#CCB152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB152#FFFFFF#000000##000000
##CCB1521.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccb152;
/* rgb */ color: rgb(204, 177, 82);
/* oklch */ color: oklch(76.5% 0.119 93.6);
Tailwind
colors: {
  custom: {
    50: '#dec886',
    500: '#ccb152',
    950: '#000000',
  },
}
SCSS
$custom: #ccb152;
$custom-light: #dec886;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb152",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 46.721,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.76523,
    "c": 0.11862,
    "h": 93.6
  },
  "luminance": 0.44891
}

Semantic roles & 50–950 ramp

primary
#CCB152
secondary
#A4AFD6
accent
#6BDE4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB152

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

Preview Lab → · Contrast checker → · Palette generator →

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