#C7CC42#C7CC42

#C7CC42 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.7% C 0.156 H 111.4°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#C7CC42
RGBrgb(199, 204, 66)
HSLhsl(62, 58%, 53%)
HSVhsv(62, 68%, 80%)
CMYKcmyk(2.5%, 0%, 67.6%, 20%)
CIE-LABlab(79.46, -18.51, 64.90)
CIE-LCHlch(79.46, 67.49, 105.92°)
OKLaboklab(81.65% -0.057 0.1453)
OKLCHoklch(81.65% 0.156 111.4)
XYZxyz(46.1309, 55.7223, 13.4786)
Luminance0.5572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7CC42 #4742CC
analogous
#CC8C42 #C7CC42 #82CC42
triadic
#C7CC42 #42C7CC #CC42C7
tetradic
#C7CC42 #42CC8C #4742CC #CC4282
square
#C7CC42 #42CC8C #4742CC #CC4282
split-complementary
#C7CC42 #4282CC #8C42CC
monochromatic
#71741F #A0A42C #C7CC42 #D5D972 #E4E6A2

Accessibility & contrast

On white

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

On black

12.14
#C7CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7CC42
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7CC42#FFFFFF#000000##000000
##C7CC421.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DCC74C
Tritanopia (blue-blind)
#D4C0B0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c7cc42;
/* rgb */ color: rgb(199, 204, 66);
/* oklch */ color: oklch(81.7% 0.156 111.4);
Tailwind
colors: {
  custom: {
    50: '#dbdb7e',
    500: '#c7cc42',
    950: '#000000',
  },
}
SCSS
$custom: #c7cc42;
$custom-light: #dbdb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7cc42",
  "rgb": {
    "r": 199,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 62.174,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81653,
    "c": 0.15606,
    "h": 111.4
  },
  "luminance": 0.55721
}

Semantic roles & 50–950 ramp

primary
#C7CC42
secondary
#38357D
accent
#47E14D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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