#C02DB7#C02DB7

#C02DB7 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.231 H 330.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C02DB7
RGBrgb(192, 45, 183)
HSLhsl(304, 62%, 46%)
HSVhsv(304, 77%, 75%)
CMYKcmyk(0%, 76.6%, 4.7%, 24.7%)
CIE-LABlab(47.63, 70.73, -40.72)
CIE-LCHlch(47.63, 81.62, 330.07°)
OKLaboklab(57.91% 0.2014 -0.1124)
OKLCHoklch(57.91% 0.231 330.8)
XYZxyz(31.2238, 16.5047, 46.3318)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DB7 #2DC036
analogous
#7F2DC0 #C02DB7 #C02D6E
triadic
#C02DB7 #B7C02D #2DB7C0
tetradic
#C02DB7 #C07F2D #2DC036 #2D6EC0
square
#C02DB7 #C07F2D #2DC036 #2D6EC0
split-complementary
#C02DB7 #6EC02D #2DC07F
monochromatic
#5D1658 #8E2188 #C02DB7 #D753CF #E285DD

Accessibility & contrast

On white

4.88
#C02DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#C02DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DB7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DB7#FFFFFF#000000##FFFFFF
##C02DB71.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64BB
Deuteranopia (green-blind)
#5D78B4
Tritanopia (blue-blind)
#C84171
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c02db7;
/* rgb */ color: rgb(192, 45, 183);
/* oklch */ color: oklch(57.9% 0.231 330.8);
Tailwind
colors: {
  custom: {
    50: '#d777cd',
    500: '#c02db7',
    950: '#000000',
  },
}
SCSS
$custom: #c02db7;
$custom-light: #d777cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c02db7",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 303.673,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57914,
    "c": 0.23065,
    "h": 330.8
  },
  "luminance": 0.16502
}

Semantic roles & 50–950 ramp

primary
#C02DB7
secondary
#7DCC82
accent
#E54D43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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