#C02CB4#C02CB4

#C02CB4 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.7% C 0.229 H 331.8°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#C02CB4
RGBrgb(192, 44, 180)
HSLhsl(305, 63%, 46%)
HSVhsv(305, 77%, 75%)
CMYKcmyk(0%, 77.1%, 6.2%, 24.7%)
CIE-LABlab(47.37, 70.56, -39.37)
CIE-LCHlch(47.37, 80.80, 330.84°)
OKLaboklab(57.68% 0.2022 -0.1084)
OKLCHoklch(57.68% 0.229 331.8)
XYZxyz(30.8772, 16.3057, 44.6923)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02CB4 #2CC038
analogous
#822CC0 #C02CB4 #C02C6A
triadic
#C02CB4 #B4C02C #2CB4C0
tetradic
#C02CB4 #C0822C #2CC038 #2C6AC0
square
#C02CB4 #C0822C #2CC038 #2C6AC0
split-complementary
#C02CB4 #6AC02C #2CC082
monochromatic
#5C1557 #8E2185 #C02CB4 #D752CD #E384DB

Accessibility & contrast

On white

4.93
#C02CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#C02CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02CB4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02CB4#FFFFFF#000000##FFFFFF
##C02CB41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E63B8
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#C83F6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02cb4;
/* rgb */ color: rgb(192, 44, 180);
/* oklch */ color: oklch(57.7% 0.229 331.8);
Tailwind
colors: {
  custom: {
    50: '#d776cb',
    500: '#c02cb4',
    950: '#000000',
  },
}
SCSS
$custom: #c02cb4;
$custom-light: #d776cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c02cb4",
  "rgb": {
    "r": 192,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 304.865,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.22944,
    "h": 331.8
  },
  "luminance": 0.16303
}

Semantic roles & 50–950 ramp

primary
#C02CB4
secondary
#7CCC82
accent
#E64F42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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