#C02AB2#C02AB2

#C02AB2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.230 H 332.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C02AB2
RGBrgb(192, 42, 178)
HSLhsl(306, 64%, 46%)
HSVhsv(306, 78%, 75%)
CMYKcmyk(0%, 78.1%, 7.3%, 24.7%)
CIE-LABlab(47.08, 70.81, -38.66)
CIE-LCHlch(47.08, 80.67, 331.36°)
OKLaboklab(57.44% 0.2037 -0.1064)
OKLCHoklch(57.44% 0.23 332.4)
XYZxyz(30.6022, 16.0794, 43.6027)
Luminance0.1608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02AB2 #2AC038
analogous
#832AC0 #C02AB2 #C02A67
triadic
#C02AB2 #B2C02A #2AB2C0
tetradic
#C02AB2 #C0832A #2AC038 #2A67C0
square
#C02AB2 #C0832A #2AC038 #2A67C0
split-complementary
#C02AB2 #67C02A #2AC083
monochromatic
#5C1455 #8E1F83 #C02AB2 #D84FCC #E381DA

Accessibility & contrast

On white

4.98
#C02AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#C02AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02AB2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02AB2#FFFFFF#000000##FFFFFF
##C02AB21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B6
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#C83D6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02ab2;
/* rgb */ color: rgb(192, 42, 178);
/* oklch */ color: oklch(57.4% 0.230 332.4);
Tailwind
colors: {
  custom: {
    50: '#d775c9',
    500: '#c02ab2',
    950: '#000000',
  },
}
SCSS
$custom: #c02ab2;
$custom-light: #d775c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ab2",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 305.6,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57435,
    "c": 0.22985,
    "h": 332.4
  },
  "luminance": 0.16077
}

Semantic roles & 50–950 ramp

primary
#C02AB2
secondary
#7ACC81
accent
#E75041
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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