#C02FAC#C02FAC

#C02FAC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.221 H 334.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#C02FAC
RGBrgb(192, 47, 172)
HSLhsl(308, 61%, 47%)
HSVhsv(308, 76%, 75%)
CMYKcmyk(0%, 75.5%, 10.4%, 24.7%)
CIE-LABlab(47.26, 68.51, -34.83)
CIE-LCHlch(47.26, 76.86, 333.05°)
OKLaboklab(57.47% 0.1994 -0.0954)
OKLCHoklch(57.47% 0.221 334.4)
XYZxyz(30.2015, 16.2207, 40.5620)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FAC #2FC043
analogous
#8C2FC0 #C02FAC #C02F64
triadic
#C02FAC #ACC02F #2FACC0
tetradic
#C02FAC #C08C2F #2FC043 #2F64C0
square
#C02FAC #C08C2F #2FC043 #2F64C0
split-complementary
#C02FAC #64C02F #2FC08C
monochromatic
#5E1754 #8F2380 #C02FAC #D656C4 #E288D5

Accessibility & contrast

On white

4.95
#C02FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#C02FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FAC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FAC#FFFFFF#000000##FFFFFF
##C02FAC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C63AF
Deuteranopia (green-blind)
#6378A9
Tritanopia (blue-blind)
#C93D6B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02fac;
/* rgb */ color: rgb(192, 47, 172);
/* oklch */ color: oklch(57.5% 0.221 334.4);
Tailwind
colors: {
  custom: {
    50: '#d777c5',
    500: '#c02fac',
    950: '#000000',
  },
}
SCSS
$custom: #c02fac;
$custom-light: #d777c5;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fac",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 308.276,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57467,
    "c": 0.22099,
    "h": 334.4
  },
  "luminance": 0.16218
}

Semantic roles & 50–950 ramp

primary
#C02FAC
secondary
#7FCB8A
accent
#E45A44
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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