#C02CBA#C02CBA

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

Color values

HEX#C02CBA
RGBrgb(192, 44, 186)
HSLhsl(302, 63%, 46%)
HSVhsv(302, 77%, 75%)
CMYKcmyk(0%, 77.1%, 3.1%, 24.7%)
CIE-LABlab(47.70, 71.47, -42.38)
CIE-LCHlch(47.70, 83.09, 329.34°)
OKLaboklab(58.01% 0.2022 -0.1171)
OKLCHoklch(58.01% 0.234 329.9)
XYZxyz(31.5017, 16.5555, 47.9812)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02CBA #2CC032
analogous
#7C2CC0 #C02CBA #C02C70
triadic
#C02CBA #BAC02C #2CBAC0
tetradic
#C02CBA #C07C2C #2CC032 #2C70C0
square
#C02CBA #C07C2C #2CC032 #2C70C0
split-complementary
#C02CBA #70C02C #2CC07C
monochromatic
#5C155A #8E218A #C02CBA #D752D2 #E384DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C02CBA#FFFFFF#000000##FFFFFF
##C02CBA1.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)
#1265BE
Deuteranopia (green-blind)
#5A78B6
Tritanopia (blue-blind)
#C74272
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c02cba;
/* rgb */ color: rgb(192, 44, 186);
/* oklch */ color: oklch(58.0% 0.234 329.9);
Tailwind
colors: {
  custom: {
    50: '#d776cf',
    500: '#c02cba',
    950: '#000000',
  },
}
SCSS
$custom: #c02cba;
$custom-light: #d776cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c02cba",
  "rgb": {
    "r": 192,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 302.432,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.58013,
    "c": 0.23372,
    "h": 329.9
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#C02CBA
secondary
#7CCC7F
accent
#E64942
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C02CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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