#CCB84B#CCB84B

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

Color values

HEX#CCB84B
RGBrgb(204, 184, 75)
HSLhsl(51, 56%, 55%)
HSVhsv(51, 63%, 80%)
CMYKcmyk(0%, 9.8%, 63.2%, 20%)
CIE-LABlab(74.59, -5.70, 56.30)
CIE-LCHlch(74.59, 56.58, 95.79°)
OKLaboklab(77.9% -0.0201 0.1283)
OKLCHoklch(77.9% 0.13 98.9)
XYZxyz(43.3141, 47.6283, 13.5669)
Luminance0.4763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB84B #4B5FCC
analogous
#CC784B #CCB84B #9FCC4B
triadic
#CCB84B #4BCCB8 #B84BCC
tetradic
#CCB84B #4BCC78 #4B5FCC #CC4B9F
square
#CCB84B #4BCC78 #4B5FCC #CC4B9F
split-complementary
#CCB84B #4B9FCC #784BCC
monochromatic
#7A6C23 #AA9730 #CCB84B #DACB7B #E7DEAA

Accessibility & contrast

On white

2.00
#CCB84B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB84B#FFFFFF#000000##000000
##CCB84B1.002.0010.5310.53
#FFFFFF2.001.0021.0021.00
#00000010.5321.001.001.00
##00000010.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccb84b;
/* rgb */ color: rgb(204, 184, 75);
/* oklch */ color: oklch(77.9% 0.130 98.9);
Tailwind
colors: {
  custom: {
    50: '#dfcd82',
    500: '#ccb84b',
    950: '#000000',
  },
}
SCSS
$custom: #ccb84b;
$custom-light: #dfcd82;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb84b",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 75
  },
  "hsl": {
    "h": 50.698,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.77901,
    "c": 0.1299,
    "h": 98.9
  },
  "luminance": 0.47626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCB84B

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

Preview Lab → · Contrast checker → · Palette generator →

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