#C02DA8#C02DA8

#C02DA8 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.220 H 335.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C02DA8
RGBrgb(192, 45, 168)
HSLhsl(310, 62%, 46%)
HSVhsv(310, 77%, 75%)
CMYKcmyk(0%, 76.6%, 12.5%, 24.7%)
CIE-LABlab(46.86, 68.52, -33.10)
CIE-LCHlch(46.86, 76.09, 334.22°)
OKLaboklab(57.11% 0.2008 -0.0904)
OKLCHoklch(57.11% 0.22 335.8)
XYZxyz(29.7450, 15.9131, 38.5432)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DA8 #2DC045
analogous
#8F2DC0 #C02DA8 #C02D5F
triadic
#C02DA8 #A8C02D #2DA8C0
tetradic
#C02DA8 #C08F2D #2DC045 #2D5FC0
square
#C02DA8 #C08F2D #2DC045 #2D5FC0
split-complementary
#C02DA8 #5FC02D #2DC08F
monochromatic
#5D1651 #8E217D #C02DA8 #D753C1 #E285D3

Accessibility & contrast

On white

5.02
#C02DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#C02DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DA8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DA8#FFFFFF#000000##FFFFFF
##C02DA81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#CA3968
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02da8;
/* rgb */ color: rgb(192, 45, 168);
/* oklch */ color: oklch(57.1% 0.220 335.8);
Tailwind
colors: {
  custom: {
    50: '#d776c2',
    500: '#c02da8',
    950: '#000000',
  },
}
SCSS
$custom: #c02da8;
$custom-light: #d776c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c02da8",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 309.796,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.22021,
    "h": 335.8
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#C02DA8
secondary
#7DCC8A
accent
#E55D43
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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