#CCBA4F#CCBA4F

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

Color values

HEX#CCBA4F
RGBrgb(204, 186, 79)
HSLhsl(51, 55%, 55%)
HSVhsv(51, 61%, 80%)
CMYKcmyk(0%, 8.8%, 61.3%, 20%)
CIE-LABlab(75.15, -6.48, 55.14)
CIE-LCHlch(75.15, 55.52, 96.70°)
OKLaboklab(78.36% -0.0218 0.1265)
OKLCHoklch(78.36% 0.128 99.8)
XYZxyz(43.8738, 48.5216, 14.4502)
Luminance0.4852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA4F #4F61CC
analogous
#CC7B4F #CCBA4F #9FCC4F
triadic
#CCBA4F #4FCCBA #BA4FCC
tetradic
#CCBA4F #4FCC7B #4F61CC #CC4F9F
square
#CCBA4F #4FCC7B #4F61CC #CC4F9F
split-complementary
#CCBA4F #4F9FCC #7B4FCC
monochromatic
#7D7024 #AC9A32 #CCBA4F #DACD7E #E7DFAE

Accessibility & contrast

On white

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

On black

10.70
#CCBA4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA4F
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA4F#FFFFFF#000000##000000
##CCBA4F1.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccba4f;
/* rgb */ color: rgb(204, 186, 79);
/* oklch */ color: oklch(78.4% 0.128 99.8);
Tailwind
colors: {
  custom: {
    50: '#dece85',
    500: '#ccba4f',
    950: '#000000',
  },
}
SCSS
$custom: #ccba4f;
$custom-light: #dece85;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba4f",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 79
  },
  "hsl": {
    "h": 51.36,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.78359,
    "c": 0.12833,
    "h": 99.8
  },
  "luminance": 0.4852
}

Semantic roles & 50–950 ramp

primary
#CCBA4F
secondary
#A1A9D5
accent
#5FDE49
background
#FEFCF8
surface
#FCF9EF
border
#D5D2CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCBA4F

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

Preview Lab → · Contrast checker → · Palette generator →

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