#CCCB42#CCCB42

#CCCB42 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.9% C 0.154 H 109.0°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CCCB42
RGBrgb(204, 203, 66)
HSLhsl(60, 58%, 53%)
HSVhsv(60, 68%, 80%)
CMYKcmyk(0%, 0.5%, 67.6%, 20%)
CIE-LABlab(79.58, -15.92, 65.16)
CIE-LCHlch(79.58, 67.08, 103.73°)
OKLaboklab(81.85% -0.05 0.1457)
OKLCHoklch(81.85% 0.154 109)
XYZxyz(47.2428, 55.9440, 13.4629)
Luminance0.5594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCB42 #4243CC
analogous
#CC8642 #CCCB42 #88CC42
triadic
#CCCB42 #42CCCB #CB42CC
tetradic
#CCCB42 #42CC86 #4243CC #CC4288
square
#CCCB42 #42CC86 #4243CC #CC4288
split-complementary
#CCCB42 #4288CC #8642CC
monochromatic
#74741F #A4A42C #CCCB42 #D9D872 #E6E6A2

Accessibility & contrast

On white

1.72
#CCCB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#CCCB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCB42
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCB42#FFFFFF#000000##000000
##CCCB421.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DDC74B
Tritanopia (blue-blind)
#DABEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cccb42;
/* rgb */ color: rgb(204, 203, 66);
/* oklch */ color: oklch(81.9% 0.154 109.0);
Tailwind
colors: {
  custom: {
    50: '#dfda7e',
    500: '#cccb42',
    950: '#000000',
  },
}
SCSS
$custom: #cccb42;
$custom-light: #dfda7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cccb42",
  "rgb": {
    "r": 204,
    "g": 203,
    "b": 66
  },
  "hsl": {
    "h": 59.565,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81851,
    "c": 0.15401,
    "h": 109
  },
  "luminance": 0.55943
}

Semantic roles & 50–950 ramp

primary
#CCCB42
secondary
#35367D
accent
#48E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCB42

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

Preview Lab → · Contrast checker → · Palette generator →

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