#C7C842#C7C842

#C7C842 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 80.8% C 0.152 H 109.8°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#C7C842
RGBrgb(199, 200, 66)
HSLhsl(60, 55%, 52%)
HSVhsv(60, 67%, 78%)
CMYKcmyk(0.5%, 0%, 67%, 21.6%)
CIE-LABlab(78.37, -16.52, 63.81)
CIE-LCHlch(78.37, 65.91, 104.52°)
OKLaboklab(80.79% -0.0514 0.143)
OKLCHoklch(80.79% 0.152 109.8)
XYZxyz(45.1923, 53.8453, 13.1658)
Luminance0.5384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C842 #4342C8
analogous
#C88642 #C7C842 #84C842
triadic
#C7C842 #42C7C8 #C842C7
tetradic
#C7C842 #42C886 #4342C8 #C84284
square
#C7C842 #42C886 #4342C8 #C84284
split-complementary
#C7C842 #4284C8 #8642C8
monochromatic
#6F6F20 #9E9F2E #C7C842 #D5D671 #E3E4A1

Accessibility & contrast

On white

1.78
#C7C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.77
#C7C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C842
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C842#FFFFFF#000000##000000
##C7C8421.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#D9C44B
Tritanopia (blue-blind)
#D5BCAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c7c842;
/* rgb */ color: rgb(199, 200, 66);
/* oklch */ color: oklch(80.8% 0.152 109.8);
Tailwind
colors: {
  custom: {
    50: '#dbd87e',
    500: '#c7c842',
    950: '#000000',
  },
}
SCSS
$custom: #c7c842;
$custom-light: #dbd87e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c842",
  "rgb": {
    "r": 199,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 60.448,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80786,
    "c": 0.15194,
    "h": 109.8
  },
  "luminance": 0.53844
}

Semantic roles & 50–950 ramp

primary
#C7C842
secondary
#363679
accent
#4ADE4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C842

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

Preview Lab → · Contrast checker → · Palette generator →

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