#C02DB9#C02DB9

#C02DB9 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.232 H 330.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C02DB9
RGBrgb(192, 45, 185)
HSLhsl(303, 62%, 46%)
HSVhsv(303, 77%, 75%)
CMYKcmyk(0%, 76.6%, 3.6%, 24.7%)
CIE-LABlab(47.74, 71.04, -41.72)
CIE-LCHlch(47.74, 82.39, 329.57°)
OKLaboklab(58.03% 0.2014 -0.1153)
OKLCHoklch(58.03% 0.232 330.2)
XYZxyz(31.4334, 16.5885, 47.4359)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02DB9 #2DC034
analogous
#7E2DC0 #C02DB9 #C02D70
triadic
#C02DB9 #B9C02D #2DB9C0
tetradic
#C02DB9 #C07E2D #2DC034 #2D70C0
square
#C02DB9 #C07E2D #2DC034 #2D70C0
split-complementary
#C02DB9 #70C02D #2DC07E
monochromatic
#5D1659 #8E2189 #C02DB9 #D753D1 #E285DE

Accessibility & contrast

On white

4.86
#C02DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C02DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02DB9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02DB9#FFFFFF#000000##FFFFFF
##C02DB91.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1765BD
Deuteranopia (green-blind)
#5B78B6
Tritanopia (blue-blind)
#C74272
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c02db9;
/* rgb */ color: rgb(192, 45, 185);
/* oklch */ color: oklch(58.0% 0.232 330.2);
Tailwind
colors: {
  custom: {
    50: '#d777ce',
    500: '#c02db9',
    950: '#000000',
  },
}
SCSS
$custom: #c02db9;
$custom-light: #d777ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c02db9",
  "rgb": {
    "r": 192,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 302.857,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.23208,
    "h": 330.2
  },
  "luminance": 0.16586
}

Semantic roles & 50–950 ramp

primary
#C02DB9
secondary
#7DCC81
accent
#E54A43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C02DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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