#C02DC4#C02DC4

#C02DC4 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.7% C 0.240 H 326.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C02DC4
RGBrgb(192, 45, 196)
HSLhsl(298, 63%, 47%)
HSVhsv(298, 77%, 77%)
CMYKcmyk(2%, 77%, 0%, 23.1%)
CIE-LABlab(48.35, 72.77, -47.16)
CIE-LCHlch(48.35, 86.71, 327.06°)
OKLaboklab(58.66% 0.2012 -0.1311)
OKLCHoklch(58.66% 0.24 326.9)
XYZxyz(32.6399, 17.0711, 53.7898)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DC4 #31C42D
analogous
#752DC4 #C02DC4 #C42D7C
triadic
#C02DC4 #C4C02D #2DC4C0
tetradic
#C02DC4 #C4752D #31C42D #2D7CC4
square
#C02DC4 #C4752D #31C42D #2D7CC4
split-complementary
#C02DC4 #7CC42D #2DC475
monochromatic
#5E1660 #8F2292 #C02DC4 #D556D8 #E188E4

Accessibility & contrast

On white

4.76
#C02DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#C02DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DC4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DC4#FFFFFF#000000##FFFFFF
##C02DC41.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#5579C0
Tritanopia (blue-blind)
#C54878
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c02dc4;
/* rgb */ color: rgb(192, 45, 196);
/* oklch */ color: oklch(58.7% 0.240 326.9);
Tailwind
colors: {
  custom: {
    50: '#d777d6',
    500: '#c02dc4',
    950: '#000000',
  },
}
SCSS
$custom: #c02dc4;
$custom-light: #d777d6;
$custom-dark: #000000;
JSON
{
  "hex": "#c02dc4",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 298.411,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58659,
    "c": 0.24012,
    "h": 326.9
  },
  "luminance": 0.17069
}

Semantic roles & 50–950 ramp

primary
#C02DC4
secondary
#82CD80
accent
#E64246
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #C02DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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