#C02FA6#C02FA6

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

Color values

HEX#C02FA6
RGBrgb(192, 47, 166)
HSLhsl(311, 61%, 47%)
HSVhsv(311, 76%, 75%)
CMYKcmyk(0%, 75.5%, 13.5%, 24.7%)
CIE-LABlab(46.97, 67.64, -31.74)
CIE-LCHlch(46.97, 74.72, 334.86°)
OKLaboklab(57.16% 0.1989 -0.0865)
OKLCHoklch(57.16% 0.217 336.5)
XYZxyz(29.6382, 15.9954, 37.5955)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FA6 #2FC049
analogous
#922FC0 #C02FA6 #C02F5D
triadic
#C02FA6 #A6C02F #2FA6C0
tetradic
#C02FA6 #C0922F #2FC049 #2F5DC0
square
#C02FA6 #C0922F #2FC049 #2F5DC0
split-complementary
#C02FA6 #5DC02F #2FC092
monochromatic
#5E1751 #8F237B #C02FA6 #D656BF #E288D2

Accessibility & contrast

On white

5.00
#C02FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#C02FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FA6
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FA6#FFFFFF#000000##FFFFFF
##C02FA61.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A9
Deuteranopia (green-blind)
#6577A3
Tritanopia (blue-blind)
#CA3968
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02fa6;
/* rgb */ color: rgb(192, 47, 166);
/* oklch */ color: oklch(57.2% 0.217 336.5);
Tailwind
colors: {
  custom: {
    50: '#d777c1',
    500: '#c02fa6',
    950: '#000000',
  },
}
SCSS
$custom: #c02fa6;
$custom-light: #d777c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fa6",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 310.759,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5716,
    "c": 0.21689,
    "h": 336.5
  },
  "luminance": 0.15993
}

Semantic roles & 50–950 ramp

primary
#C02FA6
secondary
#7FCB8D
accent
#E46144
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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