#C02CAB#C02CAB

#C02CAB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.223 H 334.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#C02CAB
RGBrgb(192, 44, 171)
HSLhsl(309, 63%, 46%)
HSVhsv(309, 77%, 75%)
CMYKcmyk(0%, 77.1%, 10.9%, 24.7%)
CIE-LABlab(46.91, 69.23, -34.80)
CIE-LCHlch(46.91, 77.48, 333.31°)
OKLaboklab(57.2% 0.2019 -0.0952)
OKLCHoklch(57.2% 0.223 334.7)
XYZxyz(29.9900, 15.9508, 40.0195)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02CAB #2CC041
analogous
#8B2CC0 #C02CAB #C02C61
triadic
#C02CAB #ABC02C #2CABC0
tetradic
#C02CAB #C08B2C #2CC041 #2C61C0
square
#C02CAB #C08B2C #2CC041 #2C61C0
split-complementary
#C02CAB #61C02C #2CC08B
monochromatic
#5C1552 #8E217F #C02CAB #D752C4 #E384D5

Accessibility & contrast

On white

5.01
#C02CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#C02CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02CAB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02CAB#FFFFFF#000000##FFFFFF
##C02CAB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#C93A6A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02cab;
/* rgb */ color: rgb(192, 44, 171);
/* oklch */ color: oklch(57.2% 0.223 334.7);
Tailwind
colors: {
  custom: {
    50: '#d776c4',
    500: '#c02cab',
    950: '#000000',
  },
}
SCSS
$custom: #c02cab;
$custom-light: #d776c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c02cab",
  "rgb": {
    "r": 192,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 308.514,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57198,
    "c": 0.22319,
    "h": 334.7
  },
  "luminance": 0.15948
}

Semantic roles & 50–950 ramp

primary
#C02CAB
secondary
#7CCC87
accent
#E65942
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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