#CCC342#CCC342

#CCC342 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.1% C 0.146 H 105.3°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CCC342
RGBrgb(204, 195, 66)
HSLhsl(56, 58%, 53%)
HSVhsv(56, 68%, 80%)
CMYKcmyk(0%, 4.4%, 67.6%, 20%)
CIE-LABlab(77.44, -11.89, 63.00)
CIE-LCHlch(77.44, 64.11, 100.69°)
OKLaboklab(80.14% -0.0387 0.1411)
OKLCHoklch(80.14% 0.146 105.3)
XYZxyz(45.4021, 52.2626, 12.8493)
Luminance0.5226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC342 #424BCC
analogous
#CC7E42 #CCC342 #90CC42
triadic
#CCC342 #42CCC3 #C342CC
tetradic
#CCC342 #42CC7E #424BCC #CC4290
square
#CCC342 #42CC7E #424BCC #CC4290
split-complementary
#CCC342 #4290CC #7E42CC
monochromatic
#746F1F #A49D2C #CCC342 #D9D272 #E6E2A2

Accessibility & contrast

On white

1.83
#CCC342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CCC342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC342
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC342#FFFFFF#000000##000000
##CCC3421.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2F
Deuteranopia (green-blind)
#D7C24A
Tritanopia (blue-blind)
#DBB6A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc342;
/* rgb */ color: rgb(204, 195, 66);
/* oklch */ color: oklch(80.1% 0.146 105.3);
Tailwind
colors: {
  custom: {
    50: '#dfd47e',
    500: '#ccc342',
    950: '#000000',
  },
}
SCSS
$custom: #ccc342;
$custom-light: #dfd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc342",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 56.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80141,
    "c": 0.14632,
    "h": 105.3
  },
  "luminance": 0.52261
}

Semantic roles & 50–950 ramp

primary
#CCC342
secondary
#353A7D
accent
#51E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC342

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

Preview Lab → · Contrast checker → · Palette generator →

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