#CCBA51#CCBA51

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

Color values

HEX#CCBA51
RGBrgb(204, 186, 81)
HSLhsl(51, 55%, 56%)
HSVhsv(51, 60%, 80%)
CMYKcmyk(0%, 8.8%, 60.3%, 20%)
CIE-LABlab(75.17, -6.34, 54.27)
CIE-LCHlch(75.17, 54.64, 96.67°)
OKLaboklab(78.38% -0.0212 0.1249)
OKLCHoklch(78.38% 0.127 99.6)
XYZxyz(43.9477, 48.5511, 14.8394)
Luminance0.4855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA51 #5163CC
analogous
#CC7C51 #CCBA51 #A0CC51
triadic
#CCBA51 #51CCBA #BA51CC
tetradic
#CCBA51 #51CC7C #5163CC #CC51A0
square
#CCBA51 #51CC7C #5163CC #CC51A0
split-complementary
#CCBA51 #51A0CC #7C51CC
monochromatic
#7E7125 #AD9B33 #CCBA51 #DACD80 #E8E0B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCBA51#FFFFFF#000000##000000
##CCBA511.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)
#CAB546
Deuteranopia (green-blind)
#CFBC56
Tritanopia (blue-blind)
#DBAEA3
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba51;
/* rgb */ color: rgb(204, 186, 81);
/* oklch */ color: oklch(78.4% 0.127 99.6);
Tailwind
colors: {
  custom: {
    50: '#dece86',
    500: '#ccba51',
    950: '#000000',
  },
}
SCSS
$custom: #ccba51;
$custom-light: #dece86;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba51",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 81
  },
  "hsl": {
    "h": 51.22,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.7838,
    "c": 0.12665,
    "h": 99.6
  },
  "luminance": 0.48549
}

Semantic roles & 50–950 ramp

primary
#CCBA51
secondary
#A3AAD6
accent
#5FDE4A
background
#FEFCF8
surface
#FCF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCBA51

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

Preview Lab → · Contrast checker → · Palette generator →

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