#CCB84C#CCB84C

#CCB84C is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.9% C 0.129 H 98.8°. Best body text is #000000 at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#CCB84C
RGBrgb(204, 184, 76)
HSLhsl(51, 56%, 55%)
HSVhsv(51, 63%, 80%)
CMYKcmyk(0%, 9.8%, 62.7%, 20%)
CIE-LABlab(74.60, -5.64, 55.87)
CIE-LCHlch(74.60, 56.15, 95.76°)
OKLaboklab(77.91% -0.0198 0.1276)
OKLCHoklch(77.91% 0.129 98.8)
XYZxyz(43.3486, 47.6421, 13.7486)
Luminance0.4764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB84C #4C60CC
analogous
#CC784C #CCB84C #A0CC4C
triadic
#CCB84C #4CCCB8 #B84CCC
tetradic
#CCB84C #4CCC78 #4C60CC #CC4CA0
square
#CCB84C #4CCC78 #4C60CC #CC4CA0
split-complementary
#CCB84C #4CA0CC #784CCC
monochromatic
#7B6D23 #AA9731 #CCB84C #DACB7C #E7DEAB

Accessibility & contrast

On white

1.99
#CCB84C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.53
#CCB84C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB84C
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB84C#FFFFFF#000000##000000
##CCB84C1.001.9910.5310.53
#FFFFFF1.991.0021.0021.00
#00000010.5321.001.001.00
##00000010.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B340
Deuteranopia (green-blind)
#CEBB52
Tritanopia (blue-blind)
#DBABA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb84c;
/* rgb */ color: rgb(204, 184, 76);
/* oklch */ color: oklch(77.9% 0.129 98.8);
Tailwind
colors: {
  custom: {
    50: '#dfcd83',
    500: '#ccb84c',
    950: '#000000',
  },
}
SCSS
$custom: #ccb84c;
$custom-light: #dfcd83;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb84c",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 76
  },
  "hsl": {
    "h": 50.625,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.77911,
    "c": 0.1291,
    "h": 98.8
  },
  "luminance": 0.4764
}

Semantic roles & 50–950 ramp

primary
#CCB84C
secondary
#9FA7D5
accent
#60DF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB84C

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

Preview Lab → · Contrast checker → · Palette generator →

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