#C02FA4#C02FA4

#C02FA4 is a mid, highly saturated pink. Relative luminance 0.159; OKLCH L 57.1% C 0.216 H 337.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C02FA4
RGBrgb(192, 47, 164)
HSLhsl(312, 61%, 47%)
HSVhsv(312, 76%, 75%)
CMYKcmyk(0%, 75.5%, 14.6%, 24.7%)
CIE-LABlab(46.87, 67.36, -30.71)
CIE-LCHlch(46.87, 74.03, 335.49°)
OKLaboklab(57.06% 0.1987 -0.0835)
OKLCHoklch(57.06% 0.216 337.2)
XYZxyz(29.4562, 15.9226, 36.6368)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FA4 #2FC04B
analogous
#942FC0 #C02FA4 #C02F5C
triadic
#C02FA4 #A4C02F #2FA4C0
tetradic
#C02FA4 #C0942F #2FC04B #2F5CC0
square
#C02FA4 #C0942F #2FC04B #2F5CC0
split-complementary
#C02FA4 #5CC02F #2FC094
monochromatic
#5E1750 #8F237A #C02FA4 #D656BD #E288D0

Accessibility & contrast

On white

5.02
#C02FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#C02FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FA4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FA4#FFFFFF#000000##FFFFFF
##C02FA41.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A7
Deuteranopia (green-blind)
#6677A1
Tritanopia (blue-blind)
#CA3867
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02fa4;
/* rgb */ color: rgb(192, 47, 164);
/* oklch */ color: oklch(57.1% 0.216 337.2);
Tailwind
colors: {
  custom: {
    50: '#d777bf',
    500: '#c02fa4',
    950: '#000000',
  },
}
SCSS
$custom: #c02fa4;
$custom-light: #d777bf;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fa4",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 311.586,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5706,
    "c": 0.21556,
    "h": 337.2
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#C02FA4
secondary
#7FCB8E
accent
#E46344
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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