#CCC938#CCC938

#CCC938 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.158 H 108.2°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CCC938
RGBrgb(204, 201, 56)
HSLhsl(59, 59%, 51%)
HSVhsv(59, 73%, 80%)
CMYKcmyk(0%, 1.5%, 72.5%, 20%)
CIE-LABlab(78.98, -15.41, 68.17)
CIE-LCHlch(78.98, 69.90, 102.74°)
OKLaboklab(81.35% -0.0496 0.1503)
OKLCHoklch(81.35% 0.158 108.2)
XYZxyz(46.5041, 54.8977, 11.8873)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC938 #383BCC
analogous
#CC7F38 #CCC938 #85CC38
triadic
#CCC938 #38CCC9 #C938CC
tetradic
#CCC938 #38CC7F #383BCC #CC3885
square
#CCC938 #38CC7F #383BCC #CC3885
split-complementary
#CCC938 #3885CC #7F38CC
monochromatic
#6E6C1C #9E9C29 #CCC938 #D8D669 #E5E399

Accessibility & contrast

On white

1.75
#CCC938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CCC938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC938
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC938#FFFFFF#000000##000000
##CCC9381.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC11B
Deuteranopia (green-blind)
#DCC643
Tritanopia (blue-blind)
#DBBCAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc938;
/* rgb */ color: rgb(204, 201, 56);
/* oklch */ color: oklch(81.4% 0.158 108.2);
Tailwind
colors: {
  custom: {
    50: '#dfd979',
    500: '#ccc938',
    950: '#000000',
  },
}
SCSS
$custom: #ccc938;
$custom-light: #dfd979;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc938",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 58.784,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81352,
    "c": 0.15827,
    "h": 108.2
  },
  "luminance": 0.54896
}

Semantic roles & 50–950 ramp

primary
#CCC938
secondary
#313377
accent
#49E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC938

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

Preview Lab → · Contrast checker → · Palette generator →

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