#CCCB38#CCCB38

#CCCB38 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.8% C 0.160 H 109.1°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CCCB38
RGBrgb(204, 203, 56)
HSLhsl(60, 59%, 51%)
HSVhsv(60, 73%, 80%)
CMYKcmyk(0%, 0.5%, 72.5%, 20%)
CIE-LABlab(79.52, -16.41, 68.68)
CIE-LCHlch(79.52, 70.62, 103.44°)
OKLaboklab(81.78% -0.0524 0.1514)
OKLCHoklch(81.78% 0.16 109.1)
XYZxyz(46.9733, 55.8362, 12.0437)
Luminance0.5584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCB38 #3839CC
analogous
#CC8138 #CCCB38 #83CC38
triadic
#CCCB38 #38CCCB #CB38CC
tetradic
#CCCB38 #38CC81 #3839CC #CC3883
square
#CCCB38 #38CC81 #3839CC #CC3883
split-complementary
#CCCB38 #3883CC #8138CC
monochromatic
#6E6D1C #9E9D29 #CCCB38 #D8D869 #E5E499

Accessibility & contrast

On white

1.73
#CCCB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#CCCB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCB38
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCB38#FFFFFF#000000##000000
##CCCB381.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC31A
Deuteranopia (green-blind)
#DEC743
Tritanopia (blue-blind)
#DBBEAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cccb38;
/* rgb */ color: rgb(204, 203, 56);
/* oklch */ color: oklch(81.8% 0.160 109.1);
Tailwind
colors: {
  custom: {
    50: '#dfda79',
    500: '#cccb38',
    950: '#000000',
  },
}
SCSS
$custom: #cccb38;
$custom-light: #dfda79;
$custom-dark: #000000;
JSON
{
  "hex": "#cccb38",
  "rgb": {
    "r": 204,
    "g": 203,
    "b": 56
  },
  "hsl": {
    "h": 59.595,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81782,
    "c": 0.16019,
    "h": 109.1
  },
  "luminance": 0.55835
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCCB38

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

Preview Lab → · Contrast checker → · Palette generator →

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