#C02FA7#C02FA7

#C02FA7 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.2% C 0.218 H 336.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C02FA7
RGBrgb(192, 47, 167)
HSLhsl(310, 61%, 47%)
HSVhsv(310, 76%, 75%)
CMYKcmyk(0%, 75.5%, 13%, 24.7%)
CIE-LABlab(47.02, 67.78, -32.26)
CIE-LCHlch(47.02, 75.07, 334.55°)
OKLaboklab(57.21% 0.199 -0.088)
OKLCHoklch(57.21% 0.218 336.1)
XYZxyz(29.7303, 16.0323, 38.0805)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FA7 #2FC048
analogous
#912FC0 #C02FA7 #C02F5F
triadic
#C02FA7 #A7C02F #2FA7C0
tetradic
#C02FA7 #C0912F #2FC048 #2F5FC0
square
#C02FA7 #C0912F #2FC048 #2F5FC0
split-complementary
#C02FA7 #5FC02F #2FC091
monochromatic
#5E1751 #8F237C #C02FA7 #D656C0 #E288D2

Accessibility & contrast

On white

4.99
#C02FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#C02FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FA7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FA7#FFFFFF#000000##FFFFFF
##C02FA71.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AA
Deuteranopia (green-blind)
#6577A4
Tritanopia (blue-blind)
#CA3A68
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02fa7;
/* rgb */ color: rgb(192, 47, 167);
/* oklch */ color: oklch(57.2% 0.218 336.1);
Tailwind
colors: {
  custom: {
    50: '#d777c1',
    500: '#c02fa7',
    950: '#000000',
  },
}
SCSS
$custom: #c02fa7;
$custom-light: #d777c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fa7",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 310.345,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57211,
    "c": 0.21757,
    "h": 336.1
  },
  "luminance": 0.1603
}

Semantic roles & 50–950 ramp

primary
#C02FA7
secondary
#7FCB8C
accent
#E46044
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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