#C2C842#C2C842

#C2C842 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.4% C 0.153 H 111.9°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#C2C842
RGBrgb(194, 200, 66)
HSLhsl(63, 55%, 52%)
HSVhsv(63, 67%, 78%)
CMYKcmyk(3%, 0%, 67%, 21.6%)
CIE-LABlab(77.98, -18.61, 63.28)
CIE-LCHlch(77.98, 65.96, 106.39°)
OKLaboklab(80.37% -0.057 0.142)
OKLCHoklch(80.37% 0.153 111.9)
XYZxyz(43.8871, 53.1723, 13.1046)
Luminance0.5317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C842 #4842C8
analogous
#C88B42 #C2C842 #7FC842
triadic
#C2C842 #42C2C8 #C842C2
tetradic
#C2C842 #42C88B #4842C8 #C8427F
square
#C2C842 #42C88B #4842C8 #C8427F
split-complementary
#C2C842 #427FC8 #8B42C8
monochromatic
#6C6F20 #9A9F2E #C2C842 #D1D671 #E1E4A1

Accessibility & contrast

On white

1.81
#C2C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#C2C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C842
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C842#FFFFFF#000000##000000
##C2C8421.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#D7C24B
Tritanopia (blue-blind)
#CFBCAD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c2c842;
/* rgb */ color: rgb(194, 200, 66);
/* oklch */ color: oklch(80.4% 0.153 111.9);
Tailwind
colors: {
  custom: {
    50: '#d8d87e',
    500: '#c2c842',
    950: '#000000',
  },
}
SCSS
$custom: #c2c842;
$custom-light: #d8d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c842",
  "rgb": {
    "r": 194,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 62.687,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80374,
    "c": 0.15302,
    "h": 111.9
  },
  "luminance": 0.53171
}

Semantic roles & 50–950 ramp

primary
#C2C842
secondary
#393679
accent
#4ADE50
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C2C842

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

Preview Lab → · Contrast checker → · Palette generator →

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