#CCB72D#CCB72D

#CCB72D is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.5% C 0.149 H 100.1°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#CCB72D
RGBrgb(204, 183, 45)
HSLhsl(52, 64%, 49%)
HSVhsv(52, 78%, 80%)
CMYKcmyk(0%, 10.3%, 77.9%, 20%)
CIE-LABlab(74.12, -6.69, 67.29)
CIE-LCHlch(74.12, 67.62, 95.67°)
OKLaboklab(77.47% -0.026 0.1464)
OKLCHoklch(77.47% 0.149 100.1)
XYZxyz(42.3111, 46.8959, 9.3053)
Luminance0.4689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB72D #2D42CC
analogous
#CC672D #CCB72D #92CC2D
triadic
#CCB72D #2DCCB7 #B72DCC
tetradic
#CCB72D #2DCC67 #2D42CC #CC2D92
square
#CCB72D #2DCC67 #2D42CC #CC2D92
split-complementary
#CCB72D #2D92CC #672DCC
monochromatic
#685D17 #9A8A22 #CCB72D #DBCA5B #E6DA8D

Accessibility & contrast

On white

2.02
#CCB72D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#CCB72D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB72D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB72D#FFFFFF#000000##000000
##CCB72D1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B208
Deuteranopia (green-blind)
#CFBA37
Tritanopia (blue-blind)
#DCA99D
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #ccb72d;
/* rgb */ color: rgb(204, 183, 45);
/* oklch */ color: oklch(77.5% 0.149 100.1);
Tailwind
colors: {
  custom: {
    50: '#e0cc72',
    500: '#ccb72d',
    950: '#000000',
  },
}
SCSS
$custom: #ccb72d;
$custom-light: #e0cc72;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb72d",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 45
  },
  "hsl": {
    "h": 52.075,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.77467,
    "c": 0.14867,
    "h": 100.1
  },
  "luminance": 0.46894
}

Semantic roles & 50–950 ramp

primary
#CCB72D
secondary
#858FD0
accent
#57E741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #CCB72D

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

Preview Lab → · Contrast checker → · Palette generator →

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