#CCB548#CCB548

#CCB548 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.2% C 0.130 H 97.3°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#CCB548
RGBrgb(204, 181, 72)
HSLhsl(50, 56%, 54%)
HSVhsv(50, 65%, 80%)
CMYKcmyk(0%, 11.3%, 64.7%, 20%)
CIE-LABlab(73.78, -4.33, 56.73)
CIE-LCHlch(73.78, 56.89, 94.36°)
OKLaboklab(77.25% -0.0165 0.1288)
OKLCHoklch(77.25% 0.13 97.3)
XYZxyz(42.5973, 46.3550, 12.8333)
Luminance0.4635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB548 #485FCC
analogous
#CC7348 #CCB548 #A1CC48
triadic
#CCB548 #48CCB5 #B548CC
tetradic
#CCB548 #48CC73 #485FCC #CC48A1
square
#CCB548 #48CC73 #485FCC #CC48A1
split-complementary
#CCB548 #48A1CC #7348CC
monochromatic
#786921 #A8932F #CCB548 #D9C878 #E7DCA8

Accessibility & contrast

On white

2.04
#CCB548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#CCB548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB548
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB548#FFFFFF#000000##000000
##CCB5481.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B13B
Deuteranopia (green-blind)
#CCB94E
Tritanopia (blue-blind)
#DBA89E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ccb548;
/* rgb */ color: rgb(204, 181, 72);
/* oklch */ color: oklch(77.2% 0.130 97.3);
Tailwind
colors: {
  custom: {
    50: '#dfca80',
    500: '#ccb548',
    950: '#000000',
  },
}
SCSS
$custom: #ccb548;
$custom-light: #dfca80;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb548",
  "rgb": {
    "r": 204,
    "g": 181,
    "b": 72
  },
  "hsl": {
    "h": 49.545,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77248,
    "c": 0.12985,
    "h": 97.3
  },
  "luminance": 0.46353
}

Semantic roles & 50–950 ramp

primary
#CCB548
secondary
#9CA6D4
accent
#63E048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB548

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

Preview Lab → · Contrast checker → · Palette generator →

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