#C02AB1#C02AB1

#C02AB1 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.4% C 0.229 H 332.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C02AB1
RGBrgb(192, 42, 177)
HSLhsl(306, 64%, 46%)
HSVhsv(306, 78%, 75%)
CMYKcmyk(0%, 78.1%, 7.8%, 24.7%)
CIE-LABlab(47.03, 70.66, -38.16)
CIE-LCHlch(47.03, 80.30, 331.63°)
OKLaboklab(57.38% 0.2037 -0.1049)
OKLCHoklch(57.38% 0.229 332.8)
XYZxyz(30.5022, 16.0394, 43.0759)
Luminance0.1604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02AB1 #2AC039
analogous
#842AC0 #C02AB1 #C02A66
triadic
#C02AB1 #B1C02A #2AB1C0
tetradic
#C02AB1 #C0842A #2AC039 #2A66C0
square
#C02AB1 #C0842A #2AC039 #2A66C0
split-complementary
#C02AB1 #66C02A #2AC084
monochromatic
#5C1454 #8E1F83 #C02AB1 #D84FCB #E381DA

Accessibility & contrast

On white

4.99
#C02AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#C02AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02AB1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02AB1#FFFFFF#000000##FFFFFF
##C02AB11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#5F77AE
Tritanopia (blue-blind)
#C93C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02ab1;
/* rgb */ color: rgb(192, 42, 177);
/* oklch */ color: oklch(57.4% 0.229 332.8);
Tailwind
colors: {
  custom: {
    50: '#d775c9',
    500: '#c02ab1',
    950: '#000000',
  },
}
SCSS
$custom: #c02ab1;
$custom-light: #d775c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ab1",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 306,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5738,
    "c": 0.22915,
    "h": 332.8
  },
  "luminance": 0.16037
}

Semantic roles & 50–950 ramp

primary
#C02AB1
secondary
#7ACC82
accent
#E75141
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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