#C02CAF#C02CAF

#C02CAF is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.226 H 333.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C02CAF
RGBrgb(192, 44, 175)
HSLhsl(307, 63%, 46%)
HSVhsv(307, 77%, 75%)
CMYKcmyk(0%, 77.1%, 8.9%, 24.7%)
CIE-LABlab(47.11, 69.81, -36.84)
CIE-LCHlch(47.11, 78.94, 332.18°)
OKLaboklab(57.41% 0.2021 -0.1011)
OKLCHoklch(57.41% 0.226 333.4)
XYZxyz(30.3770, 16.1056, 42.0580)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02CAF #2CC03D
analogous
#872CC0 #C02CAF #C02C65
triadic
#C02CAF #AFC02C #2CAFC0
tetradic
#C02CAF #C0872C #2CC03D #2C65C0
square
#C02CAF #C0872C #2CC03D #2C65C0
split-complementary
#C02CAF #65C02C #2CC087
monochromatic
#5C1554 #8E2182 #C02CAF #D752C8 #E384D8

Accessibility & contrast

On white

4.98
#C02CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#C02CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02CAF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02CAF#FFFFFF#000000##FFFFFF
##C02CAF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#C93C6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02caf;
/* rgb */ color: rgb(192, 44, 175);
/* oklch */ color: oklch(57.4% 0.226 333.4);
Tailwind
colors: {
  custom: {
    50: '#d776c7',
    500: '#c02caf',
    950: '#000000',
  },
}
SCSS
$custom: #c02caf;
$custom-light: #d776c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c02caf",
  "rgb": {
    "r": 192,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 306.892,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57409,
    "c": 0.22595,
    "h": 333.4
  },
  "luminance": 0.16103
}

Semantic roles & 50–950 ramp

primary
#C02CAF
secondary
#7CCC85
accent
#E65542
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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