#CCB42D#CCB42D

#CCB42D is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.8% C 0.146 H 98.5°. Best body text is #000000 at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#CCB42D
RGBrgb(204, 180, 45)
HSLhsl(51, 64%, 49%)
HSVhsv(51, 78%, 80%)
CMYKcmyk(0%, 11.8%, 77.9%, 20%)
CIE-LABlab(73.33, -5.13, 66.57)
CIE-LCHlch(73.33, 66.77, 94.40°)
OKLaboklab(76.84% -0.0216 0.1448)
OKLCHoklch(76.84% 0.146 98.5)
XYZxyz(41.6989, 45.6715, 9.1012)
Luminance0.4567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB42D #2D45CC
analogous
#CC652D #CCB42D #95CC2D
triadic
#CCB42D #2DCCB4 #B42DCC
tetradic
#CCB42D #2DCC65 #2D45CC #CC2D95
square
#CCB42D #2DCC65 #2D45CC #CC2D95
split-complementary
#CCB42D #2D95CC #652DCC
monochromatic
#685C17 #9A8822 #CCB42D #DBC85B #E6D98D

Accessibility & contrast

On white

2.07
#CCB42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.13
#CCB42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB42D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB42D#FFFFFF#000000##000000
##CCB42D1.002.0710.1310.13
#FFFFFF2.071.0021.0021.00
#00000010.1321.001.001.00
##00000010.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF0B
Deuteranopia (green-blind)
#CDB837
Tritanopia (blue-blind)
#DCA69B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #ccb42d;
/* rgb */ color: rgb(204, 180, 45);
/* oklch */ color: oklch(76.8% 0.146 98.5);
Tailwind
colors: {
  custom: {
    50: '#e0ca71',
    500: '#ccb42d',
    950: '#000000',
  },
}
SCSS
$custom: #ccb42d;
$custom-light: #e0ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb42d",
  "rgb": {
    "r": 204,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 50.943,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.76839,
    "c": 0.14645,
    "h": 98.5
  },
  "luminance": 0.45669
}

Semantic roles & 50–950 ramp

primary
#CCB42D
secondary
#8590D0
accent
#5AE741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #CCB42D

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

Preview Lab → · Contrast checker → · Palette generator →

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