#CCB948#CCB948

#CCB948 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.1% C 0.133 H 99.7°. Best body text is #000000 at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#CCB948
RGBrgb(204, 185, 72)
HSLhsl(51, 56%, 54%)
HSVhsv(51, 65%, 80%)
CMYKcmyk(0%, 9.3%, 64.7%, 20%)
CIE-LABlab(74.83, -6.41, 57.85)
CIE-LCHlch(74.83, 58.20, 96.32°)
OKLaboklab(78.08% -0.0224 0.1312)
OKLCHoklch(78.08% 0.133 99.7)
XYZxyz(43.4223, 48.0051, 13.1083)
Luminance0.4800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB948 #485BCC
analogous
#CC7748 #CCB948 #9DCC48
triadic
#CCB948 #48CCB9 #B948CC
tetradic
#CCB948 #48CC77 #485BCC #CC489D
square
#CCB948 #48CC77 #485BCC #CC489D
split-complementary
#CCB948 #489DCC #7748CC
monochromatic
#786C21 #A8972F #CCB948 #D9CB78 #E7DEA8

Accessibility & contrast

On white

1.98
#CCB948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.60
#CCB948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB948
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB948#FFFFFF#000000##000000
##CCB9481.001.9810.6010.60
#FFFFFF1.981.0021.0021.00
#00000010.6021.001.001.00
##00000010.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccb948;
/* rgb */ color: rgb(204, 185, 72);
/* oklch */ color: oklch(78.1% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#dfcd80',
    500: '#ccb948',
    950: '#000000',
  },
}
SCSS
$custom: #ccb948;
$custom-light: #dfcd80;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb948",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 72
  },
  "hsl": {
    "h": 51.364,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78082,
    "c": 0.13309,
    "h": 99.7
  },
  "luminance": 0.48003
}

Semantic roles & 50–950 ramp

primary
#CCB948
secondary
#9CA4D4
accent
#5EE048
background
#FEFCF8
surface
#FCF9EF
border
#D5D2CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB948

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

Preview Lab → · Contrast checker → · Palette generator →

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