#C02FA1#C02FA1

#C02FA1 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 56.9% C 0.214 H 338.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C02FA1
RGBrgb(192, 47, 161)
HSLhsl(313, 61%, 47%)
HSVhsv(313, 76%, 75%)
CMYKcmyk(0%, 75.5%, 16.1%, 24.7%)
CIE-LABlab(46.73, 66.94, -29.14)
CIE-LCHlch(46.73, 73.01, 336.47°)
OKLaboklab(56.91% 0.1984 -0.0791)
OKLCHoklch(56.91% 0.214 338.3)
XYZxyz(29.1884, 15.8155, 35.2268)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FA1 #2FC04E
analogous
#972FC0 #C02FA1 #C02F58
triadic
#C02FA1 #A1C02F #2FA1C0
tetradic
#C02FA1 #C0972F #2FC04E #2F58C0
square
#C02FA1 #C0972F #2FC04E #2F58C0
split-complementary
#C02FA1 #58C02F #2FC097
monochromatic
#5E174F #8F2378 #C02FA1 #D656BB #E288CF

Accessibility & contrast

On white

5.04
#C02FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#C02FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FA1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FA1#FFFFFF#000000##FFFFFF
##C02FA11.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3660A4
Deuteranopia (green-blind)
#67779E
Tritanopia (blue-blind)
#CB3765
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02fa1;
/* rgb */ color: rgb(192, 47, 161);
/* oklch */ color: oklch(56.9% 0.214 338.3);
Tailwind
colors: {
  custom: {
    50: '#d777bd',
    500: '#c02fa1',
    950: '#000000',
  },
}
SCSS
$custom: #c02fa1;
$custom-light: #d777bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fa1",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 312.828,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56912,
    "c": 0.21357,
    "h": 338.3
  },
  "luminance": 0.15813
}

Semantic roles & 50–950 ramp

primary
#C02FA1
secondary
#7FCB90
accent
#E46644
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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