#C02BA1#C02BA1

#C02BA1 is a mid, highly saturated pink. Relative luminance 0.155; OKLCH L 56.6% C 0.217 H 338.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#C02BA1
RGBrgb(192, 43, 161)
HSLhsl(312, 63%, 46%)
HSVhsv(312, 78%, 75%)
CMYKcmyk(0%, 77.6%, 16.1%, 24.7%)
CIE-LABlab(46.33, 68.10, -29.78)
CIE-LCHlch(46.33, 74.33, 336.38°)
OKLaboklab(56.62% 0.2019 -0.0809)
OKLCHoklch(56.62% 0.217 338.2)
XYZxyz(29.0358, 15.5103, 35.1759)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02BA1 #2BC04A
analogous
#942BC0 #C02BA1 #C02B56
triadic
#C02BA1 #A1C02B #2BA1C0
tetradic
#C02BA1 #C0942B #2BC04A #2B56C0
square
#C02BA1 #C0942B #2BC04A #2B56C0
split-complementary
#C02BA1 #56C02B #2BC094
monochromatic
#5C154D #8E2077 #C02BA1 #D850BC #E382CF

Accessibility & contrast

On white

5.12
#C02BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#C02BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02BA1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02BA1#FFFFFF#000000##FFFFFF
##C02BA11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA4
Deuteranopia (green-blind)
#66769E
Tritanopia (blue-blind)
#CB3464
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c02ba1;
/* rgb */ color: rgb(192, 43, 161);
/* oklch */ color: oklch(56.6% 0.217 338.2);
Tailwind
colors: {
  custom: {
    50: '#d775bd',
    500: '#c02ba1',
    950: '#000000',
  },
}
SCSS
$custom: #c02ba1;
$custom-light: #d775bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ba1",
  "rgb": {
    "r": 192,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 312.483,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5662,
    "c": 0.21748,
    "h": 338.2
  },
  "luminance": 0.15507
}

Semantic roles & 50–950 ramp

primary
#C02BA1
secondary
#7BCC8C
accent
#E66441
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C02BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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