#CCBA5F#CCBA5F

#CCBA5F is a light, moderate yellow. Relative luminance 0.488; OKLCH L 78.5% C 0.114 H 98.3°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#CCBA5F
RGBrgb(204, 186, 95)
HSLhsl(50, 52%, 59%)
HSVhsv(50, 53%, 80%)
CMYKcmyk(0%, 8.8%, 53.4%, 20%)
CIE-LABlab(75.32, -5.27, 47.89)
CIE-LCHlch(75.32, 48.18, 96.29°)
OKLaboklab(78.54% -0.0165 0.1127)
OKLCHoklch(78.54% 0.114 98.3)
XYZxyz(44.5278, 48.7832, 17.8948)
Luminance0.4878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA5F #5F71CC
analogous
#CC835F #CCBA5F #A7CC5F
triadic
#CCBA5F #5FCCBA #BA5FCC
tetradic
#CCBA5F #5FCC83 #5F71CC #CC5FA7
square
#CCBA5F #5FCC83 #5F71CC #CC5FA7
split-complementary
#CCBA5F #5FA7CC #835FCC
monochromatic
#86772B #B4A039 #CCBA5F #DBCE8D #EAE2BC

Accessibility & contrast

On white

1.95
#CCBA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#CCBA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA5F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA5F#FFFFFF#000000##000000
##CCBA5F1.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B657
Deuteranopia (green-blind)
#CEBC63
Tritanopia (blue-blind)
#DAAFA5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba5f;
/* rgb */ color: rgb(204, 186, 95);
/* oklch */ color: oklch(78.5% 0.114 98.3);
Tailwind
colors: {
  custom: {
    50: '#dece8f',
    500: '#ccba5f',
    950: '#000000',
  },
}
SCSS
$custom: #ccba5f;
$custom-light: #dece8f;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba5f",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 95
  },
  "hsl": {
    "h": 50.092,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.78541,
    "c": 0.11395,
    "h": 98.3
  },
  "luminance": 0.48781
}

Semantic roles & 50–950 ramp

primary
#CCBA5F
secondary
#AEB5D9
accent
#64DB4D
background
#FDFCF8
surface
#FBF9F0
border
#D4D2CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CCBA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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