#C02BAB#C02BAB

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

Color values

HEX#C02BAB
RGBrgb(192, 43, 171)
HSLhsl(308, 63%, 46%)
HSVhsv(308, 78%, 75%)
CMYKcmyk(0%, 77.6%, 10.9%, 24.7%)
CIE-LABlab(46.81, 69.51, -34.95)
CIE-LCHlch(46.81, 77.80, 333.31°)
OKLaboklab(57.13% 0.2027 -0.0957)
OKLCHoklch(57.13% 0.224 334.7)
XYZxyz(29.9532, 15.8772, 40.0073)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02BAB #2BC040
analogous
#8A2BC0 #C02BAB #C02B61
triadic
#C02BAB #ABC02B #2BABC0
tetradic
#C02BAB #C08A2B #2BC040 #2B61C0
square
#C02BAB #C08A2B #2BC040 #2B61C0
split-complementary
#C02BAB #61C02B #2BC08A
monochromatic
#5C1552 #8E207E #C02BAB #D850C5 #E382D5

Accessibility & contrast

On white

5.03
#C02BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#C02BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02BAB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02BAB#FFFFFF#000000##FFFFFF
##C02BAB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#C9396A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02bab;
/* rgb */ color: rgb(192, 43, 171);
/* oklch */ color: oklch(57.1% 0.224 334.7);
Tailwind
colors: {
  custom: {
    50: '#d776c4',
    500: '#c02bab',
    950: '#000000',
  },
}
SCSS
$custom: #c02bab;
$custom-light: #d776c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c02bab",
  "rgb": {
    "r": 192,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 308.456,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57128,
    "c": 0.22413,
    "h": 334.7
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#C02BAB
secondary
#7BCC86
accent
#E65941
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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