#C02DB2#C02DB2

#C02DB2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.227 H 332.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#C02DB2
RGBrgb(192, 45, 178)
HSLhsl(306, 62%, 46%)
HSVhsv(306, 77%, 75%)
CMYKcmyk(0%, 76.6%, 7.3%, 24.7%)
CIE-LABlab(47.37, 69.98, -38.21)
CIE-LCHlch(47.37, 79.73, 331.37°)
OKLaboklab(57.64% 0.2013 -0.1051)
OKLCHoklch(57.64% 0.227 332.4)
XYZxyz(30.7126, 16.3002, 43.6395)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DB2 #2DC03B
analogous
#852DC0 #C02DB2 #C02D69
triadic
#C02DB2 #B2C02D #2DB2C0
tetradic
#C02DB2 #C0852D #2DC03B #2D69C0
square
#C02DB2 #C0852D #2DC03B #2D69C0
split-complementary
#C02DB2 #69C02D #2DC085
monochromatic
#5D1656 #8E2184 #C02DB2 #D753CA #E285DA

Accessibility & contrast

On white

4.93
#C02DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#C02DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DB2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DB2#FFFFFF#000000##FFFFFF
##C02DB21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B6
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#C83E6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02db2;
/* rgb */ color: rgb(192, 45, 178);
/* oklch */ color: oklch(57.6% 0.227 332.4);
Tailwind
colors: {
  custom: {
    50: '#d777c9',
    500: '#c02db2',
    950: '#000000',
  },
}
SCSS
$custom: #c02db2;
$custom-light: #d777c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c02db2",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 305.714,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5764,
    "c": 0.2271,
    "h": 332.4
  },
  "luminance": 0.16298
}

Semantic roles & 50–950 ramp

primary
#C02DB2
secondary
#7DCC85
accent
#E55243
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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