#C02BAC#C02BAC

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

Color values

HEX#C02BAC
RGBrgb(192, 43, 172)
HSLhsl(308, 63%, 46%)
HSVhsv(308, 78%, 75%)
CMYKcmyk(0%, 77.6%, 10.4%, 24.7%)
CIE-LABlab(46.86, 69.65, -35.46)
CIE-LCHlch(46.86, 78.16, 333.02°)
OKLaboklab(57.18% 0.2027 -0.0972)
OKLCHoklch(57.18% 0.225 334.4)
XYZxyz(30.0488, 15.9155, 40.5112)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02BAC #2BC03F
analogous
#892BC0 #C02BAC #C02B61
triadic
#C02BAC #ACC02B #2BACC0
tetradic
#C02BAC #C0892B #2BC03F #2B61C0
square
#C02BAC #C0892B #2BC03F #2B61C0
split-complementary
#C02BAC #61C02B #2BC089
monochromatic
#5C1552 #8E207F #C02BAC #D850C6 #E382D6

Accessibility & contrast

On white

5.02
#C02BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#C02BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02BAC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02BAC#FFFFFF#000000##FFFFFF
##C02BAC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#6177A9
Tritanopia (blue-blind)
#C93A6A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02bac;
/* rgb */ color: rgb(192, 43, 172);
/* oklch */ color: oklch(57.2% 0.225 334.4);
Tailwind
colors: {
  custom: {
    50: '#d776c5',
    500: '#c02bac',
    950: '#000000',
  },
}
SCSS
$custom: #c02bac;
$custom-light: #d776c5;
$custom-dark: #000000;
JSON
{
  "hex": "#c02bac",
  "rgb": {
    "r": 192,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 308.054,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57181,
    "c": 0.22481,
    "h": 334.4
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C02BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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