#CCB84F#CCB84F

#CCB84F is a light, vivid yellow. Relative luminance 0.477; OKLCH L 77.9% C 0.127 H 98.6°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#CCB84F
RGBrgb(204, 184, 79)
HSLhsl(50, 55%, 55%)
HSVhsv(50, 61%, 80%)
CMYKcmyk(0%, 9.8%, 61.3%, 20%)
CIE-LABlab(74.63, -5.44, 54.56)
CIE-LCHlch(74.63, 54.84, 95.69°)
OKLaboklab(77.94% -0.0189 0.1252)
OKLCHoklch(77.94% 0.127 98.6)
XYZxyz(43.4554, 47.6848, 14.3107)
Luminance0.4768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB84F #4F63CC
analogous
#CC794F #CCB84F #A1CC4F
triadic
#CCB84F #4FCCB8 #B84FCC
tetradic
#CCB84F #4FCC79 #4F63CC #CC4FA1
square
#CCB84F #4FCC79 #4F63CC #CC4FA1
split-complementary
#CCB84F #4FA1CC #794FCC
monochromatic
#7D6E24 #AC9832 #CCB84F #DACB7E #E7DEAE

Accessibility & contrast

On white

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

On black

10.54
#CCB84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB84F
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB84F#FFFFFF#000000##000000
##CCB84F1.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B443
Deuteranopia (green-blind)
#CEBB54
Tritanopia (blue-blind)
#DBACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb84f;
/* rgb */ color: rgb(204, 184, 79);
/* oklch */ color: oklch(77.9% 0.127 98.6);
Tailwind
colors: {
  custom: {
    50: '#decd84',
    500: '#ccb84f',
    950: '#000000',
  },
}
SCSS
$custom: #ccb84f;
$custom-light: #decd84;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb84f",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 79
  },
  "hsl": {
    "h": 50.4,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.77941,
    "c": 0.12663,
    "h": 98.6
  },
  "luminance": 0.47683
}

Semantic roles & 50–950 ramp

primary
#CCB84F
secondary
#A1AAD5
accent
#61DE49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB84F

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

Preview Lab → · Contrast checker → · Palette generator →

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