#CCCA38#CCCA38

#CCCA38 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.6% C 0.159 H 108.7°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CCCA38
RGBrgb(204, 202, 56)
HSLhsl(59, 59%, 51%)
HSVhsv(59, 73%, 80%)
CMYKcmyk(0%, 1%, 72.5%, 20%)
CIE-LABlab(79.25, -15.91, 68.43)
CIE-LCHlch(79.25, 70.26, 103.09°)
OKLaboklab(81.57% -0.051 0.1509)
OKLCHoklch(81.57% 0.159 108.7)
XYZxyz(46.7379, 55.3654, 11.9652)
Luminance0.5536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA38 #383ACC
analogous
#CC8038 #CCCA38 #84CC38
triadic
#CCCA38 #38CCCA #CA38CC
tetradic
#CCCA38 #38CC80 #383ACC #CC3884
square
#CCCA38 #38CC80 #383ACC #CC3884
split-complementary
#CCCA38 #3884CC #8038CC
monochromatic
#6E6C1C #9E9D29 #CCCA38 #D8D769 #E5E499

Accessibility & contrast

On white

1.74
#CCCA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#CCCA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCA38
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCA38#FFFFFF#000000##000000
##CCCA381.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21B
Deuteranopia (green-blind)
#DDC743
Tritanopia (blue-blind)
#DBBDAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccca38;
/* rgb */ color: rgb(204, 202, 56);
/* oklch */ color: oklch(81.6% 0.159 108.7);
Tailwind
colors: {
  custom: {
    50: '#dfd979',
    500: '#ccca38',
    950: '#000000',
  },
}
SCSS
$custom: #ccca38;
$custom-light: #dfd979;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca38",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 56
  },
  "hsl": {
    "h": 59.189,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81567,
    "c": 0.15923,
    "h": 108.7
  },
  "luminance": 0.55364
}

Semantic roles & 50–950 ramp

primary
#CCCA38
secondary
#313277
accent
#48E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCA38

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

Preview Lab → · Contrast checker → · Palette generator →

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