#C02DB8#C02DB8

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

Color values

HEX#C02DB8
RGBrgb(192, 45, 184)
HSLhsl(303, 62%, 46%)
HSVhsv(303, 77%, 75%)
CMYKcmyk(0%, 76.6%, 4.2%, 24.7%)
CIE-LABlab(47.68, 70.89, -41.22)
CIE-LCHlch(47.68, 82.00, 329.82°)
OKLaboklab(57.97% 0.2014 -0.1138)
OKLCHoklch(57.97% 0.231 330.5)
XYZxyz(31.3283, 16.5465, 46.8819)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DB8 #2DC035
analogous
#7F2DC0 #C02DB8 #C02D6F
triadic
#C02DB8 #B8C02D #2DB8C0
tetradic
#C02DB8 #C07F2D #2DC035 #2D6FC0
square
#C02DB8 #C07F2D #2DC035 #2D6FC0
split-complementary
#C02DB8 #6FC02D #2DC07F
monochromatic
#5D1659 #8E2188 #C02DB8 #D753D0 #E285DD

Accessibility & contrast

On white

4.87
#C02DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#C02DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DB8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DB8#FFFFFF#000000##FFFFFF
##C02DB81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BC
Deuteranopia (green-blind)
#5C78B5
Tritanopia (blue-blind)
#C74271
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c02db8;
/* rgb */ color: rgb(192, 45, 184);
/* oklch */ color: oklch(58.0% 0.231 330.5);
Tailwind
colors: {
  custom: {
    50: '#d777ce',
    500: '#c02db8',
    950: '#000000',
  },
}
SCSS
$custom: #c02db8;
$custom-light: #d777ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c02db8",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 303.265,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5797,
    "c": 0.23137,
    "h": 330.5
  },
  "luminance": 0.16544
}

Semantic roles & 50–950 ramp

primary
#C02DB8
secondary
#7DCC81
accent
#E54C43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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