#CCCC38#CCCC38

#CCCC38 is a light, vivid yellow. Relative luminance 0.563; OKLCH L 82.0% C 0.161 H 109.5°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#CCCC38
RGBrgb(204, 204, 56)
HSLhsl(60, 59%, 51%)
HSVhsv(60, 73%, 80%)
CMYKcmyk(0%, 0%, 72.5%, 20%)
CIE-LABlab(79.79, -16.91, 68.94)
CIE-LCHlch(79.79, 70.98, 103.78°)
OKLaboklab(82% -0.0537 0.1519)
OKLCHoklch(82% 0.161 109.5)
XYZxyz(47.2102, 56.3100, 12.1227)
Luminance0.5631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC38 #3838CC
analogous
#CC8238 #CCCC38 #82CC38
triadic
#CCCC38 #38CCCC #CC38CC
tetradic
#CCCC38 #38CC82 #3838CC #CC3882
square
#CCCC38 #38CC82 #3838CC #CC3882
split-complementary
#CCCC38 #3882CC #8238CC
monochromatic
#6E6E1C #9E9E29 #CCCC38 #D8D869 #E5E599

Accessibility & contrast

On white

1.71
#CCCC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.26
#CCCC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC38
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC38#FFFFFF#000000##000000
##CCCC381.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC31A
Deuteranopia (green-blind)
#DEC844
Tritanopia (blue-blind)
#DABFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc38;
/* rgb */ color: rgb(204, 204, 56);
/* oklch */ color: oklch(82.0% 0.161 109.5);
Tailwind
colors: {
  custom: {
    50: '#dfdb79',
    500: '#cccc38',
    950: '#000000',
  },
}
SCSS
$custom: #cccc38;
$custom-light: #dfdb79;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc38",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81997,
    "c": 0.16116,
    "h": 109.5
  },
  "luminance": 0.56309
}

Semantic roles & 50–950 ramp

primary
#CCCC38
secondary
#313177
accent
#45E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCC38

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

Preview Lab → · Contrast checker → · Palette generator →

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