#CCB45F#CCB45F

#CCB45F is a light, moderate yellow. Relative luminance 0.463; OKLCH L 77.3% C 0.109 H 93.9°. Best body text is #000000 at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#CCB45F
RGBrgb(204, 180, 95)
HSLhsl(47, 52%, 59%)
HSVhsv(47, 53%, 80%)
CMYKcmyk(0%, 11.8%, 53.4%, 20%)
CIE-LABlab(73.74, -2.13, 46.03)
CIE-LCHlch(73.74, 46.08, 92.65°)
OKLaboklab(77.3% -0.0075 0.1087)
OKLCHoklch(77.3% 0.109 93.9)
XYZxyz(43.2903, 46.3080, 17.4823)
Luminance0.4631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB45F #5F77CC
analogous
#CC7D5F #CCB45F #ADCC5F
triadic
#CCB45F #5FCCB4 #B45FCC
tetradic
#CCB45F #5FCC7D #5F77CC #CC5FAD
square
#CCB45F #5FCC7D #5F77CC #CC5FAD
split-complementary
#CCB45F #5FADCC #7D5FCC
monochromatic
#86722B #B49939 #CCB45F #DBCA8D #EAE0BC

Accessibility & contrast

On white

2.05
#CCB45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.26
#CCB45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB45F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB45F#FFFFFF#000000##000000
##CCB45F1.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B157
Deuteranopia (green-blind)
#CAB862
Tritanopia (blue-blind)
#DAA9A0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ccb45f;
/* rgb */ color: rgb(204, 180, 95);
/* oklch */ color: oklch(77.3% 0.109 93.9);
Tailwind
colors: {
  custom: {
    50: '#deca8e',
    500: '#ccb45f',
    950: '#000000',
  },
}
SCSS
$custom: #ccb45f;
$custom-light: #deca8e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb45f",
  "rgb": {
    "r": 204,
    "g": 180,
    "b": 95
  },
  "hsl": {
    "h": 46.789,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.77298,
    "c": 0.10894,
    "h": 93.9
  },
  "luminance": 0.46306
}

Semantic roles & 50–950 ramp

primary
#CCB45F
secondary
#AEB7D9
accent
#6CDB4D
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CCB45F

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

Preview Lab → · Contrast checker → · Palette generator →

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