#CCBA52#CCBA52

#CCBA52 is a light, vivid yellow. Relative luminance 0.486; OKLCH L 78.4% C 0.126 H 99.6°. Best body text is #000000 at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#CCBA52
RGBrgb(204, 186, 82)
HSLhsl(51, 54%, 56%)
HSVhsv(51, 60%, 80%)
CMYKcmyk(0%, 8.8%, 59.8%, 20%)
CIE-LABlab(75.18, -6.27, 53.83)
CIE-LCHlch(75.18, 54.19, 96.65°)
OKLaboklab(78.39% -0.0209 0.1241)
OKLCHoklch(78.39% 0.126 99.6)
XYZxyz(43.9854, 48.5662, 15.0383)
Luminance0.4856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA52 #5264CC
analogous
#CC7D52 #CCBA52 #A1CC52
triadic
#CCBA52 #52CCBA #BA52CC
tetradic
#CCBA52 #52CC7D #5264CC #CC52A1
square
#CCBA52 #52CC7D #5264CC #CC52A1
split-complementary
#CCBA52 #52A1CC #7D52CC
monochromatic
#7E7125 #AE9C33 #CCBA52 #DACD81 #E8E0B1

Accessibility & contrast

On white

1.96
#CCBA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.71
#CCBA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA52
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA52#FFFFFF#000000##000000
##CCBA521.001.9610.7110.71
#FFFFFF1.961.0021.0021.00
#00000010.7121.001.001.00
##00000010.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB547
Deuteranopia (green-blind)
#CFBC57
Tritanopia (blue-blind)
#DBAEA3
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba52;
/* rgb */ color: rgb(204, 186, 82);
/* oklch */ color: oklch(78.4% 0.126 99.6);
Tailwind
colors: {
  custom: {
    50: '#dece86',
    500: '#ccba52',
    950: '#000000',
  },
}
SCSS
$custom: #ccba52;
$custom-light: #dece86;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba52",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 51.148,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.7839,
    "c": 0.1258,
    "h": 99.6
  },
  "luminance": 0.48564
}

Semantic roles & 50–950 ramp

primary
#CCBA52
secondary
#A4ABD6
accent
#60DE4A
background
#FEFCF8
surface
#FCF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCBA52

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

Preview Lab → · Contrast checker → · Palette generator →

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