#CCB22D#CCB22D

#CCB22D is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.4% C 0.145 H 97.4°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#CCB22D
RGBrgb(204, 178, 45)
HSLhsl(50, 64%, 49%)
HSVhsv(50, 78%, 80%)
CMYKcmyk(0%, 12.7%, 77.9%, 20%)
CIE-LABlab(72.81, -4.08, 66.10)
CIE-LCHlch(72.81, 66.22, 93.53°)
OKLaboklab(76.42% -0.0187 0.1438)
OKLCHoklch(76.42% 0.145 97.4)
XYZxyz(41.2981, 44.8698, 8.9676)
Luminance0.4487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB22D #2D47CC
analogous
#CC632D #CCB22D #97CC2D
triadic
#CCB22D #2DCCB2 #B22DCC
tetradic
#CCB22D #2DCC63 #2D47CC #CC2D97
square
#CCB22D #2DCC63 #2D47CC #CC2D97
split-complementary
#CCB22D #2D97CC #632DCC
monochromatic
#685B17 #9A8622 #CCB22D #DBC65B #E6D78D

Accessibility & contrast

On white

2.11
#CCB22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#CCB22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB22D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB22D#FFFFFF#000000##000000
##CCB22D1.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE0C
Deuteranopia (green-blind)
#CBB636
Tritanopia (blue-blind)
#DCA499
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb22d;
/* rgb */ color: rgb(204, 178, 45);
/* oklch */ color: oklch(76.4% 0.145 97.4);
Tailwind
colors: {
  custom: {
    50: '#e0c871',
    500: '#ccb22d',
    950: '#000000',
  },
}
SCSS
$custom: #ccb22d;
$custom-light: #e0c871;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb22d",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 50.189,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.76422,
    "c": 0.14503,
    "h": 97.4
  },
  "luminance": 0.44868
}

Semantic roles & 50–950 ramp

primary
#CCB22D
secondary
#8591D0
accent
#5CE741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #CCB22D

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

Preview Lab → · Contrast checker → · Palette generator →

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