#C7CD42#C7CD42

#C7CD42 is a light, vivid yellow. Relative luminance 0.562; OKLCH L 81.9% C 0.157 H 111.8°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#C7CD42
RGBrgb(199, 205, 66)
HSLhsl(63, 58%, 53%)
HSVhsv(63, 68%, 80%)
CMYKcmyk(2.9%, 0%, 67.8%, 19.6%)
CIE-LABlab(79.73, -19.01, 65.17)
CIE-LCHlch(79.73, 67.89, 106.26°)
OKLaboklab(81.87% -0.0584 0.1458)
OKLCHoklch(81.87% 0.157 111.8)
XYZxyz(46.3693, 56.1992, 13.5581)
Luminance0.5620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7CD42 #4842CD
analogous
#CD8D42 #C7CD42 #81CD42
triadic
#C7CD42 #42C7CD #CD42C7
tetradic
#C7CD42 #42CD8D #4842CD #CD4281
square
#C7CD42 #42CD8D #4842CD #CD4281
split-complementary
#C7CD42 #4281CD #8D42CD
monochromatic
#72761F #A1A62C #C7CD42 #D5DA72 #E4E7A3

Accessibility & contrast

On white

1.72
#C7CD42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#C7CD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7CD42
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7CD42#FFFFFF#000000##000000
##C7CD421.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC42D
Deuteranopia (green-blind)
#DDC74C
Tritanopia (blue-blind)
#D4C1B1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #c7cd42;
/* rgb */ color: rgb(199, 205, 66);
/* oklch */ color: oklch(81.9% 0.157 111.8);
Tailwind
colors: {
  custom: {
    50: '#dbdc7e',
    500: '#c7cd42',
    950: '#000000',
  },
}
SCSS
$custom: #c7cd42;
$custom-light: #dbdc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7cd42",
  "rgb": {
    "r": 199,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 62.59,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.8187,
    "c": 0.1571,
    "h": 111.8
  },
  "luminance": 0.56198
}

Semantic roles & 50–950 ramp

primary
#C7CD42
secondary
#38357E
accent
#46E14D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #C7CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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