#C02FAB#C02FAB

#C02FAB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.220 H 334.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#C02FAB
RGBrgb(192, 47, 171)
HSLhsl(309, 61%, 47%)
HSVhsv(309, 76%, 75%)
CMYKcmyk(0%, 75.5%, 10.9%, 24.7%)
CIE-LABlab(47.21, 68.36, -34.32)
CIE-LCHlch(47.21, 76.49, 333.34°)
OKLaboklab(57.42% 0.1993 -0.0939)
OKLCHoklch(57.42% 0.22 334.8)
XYZxyz(30.1058, 16.1825, 40.0581)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FAB #2FC044
analogous
#8D2FC0 #C02FAB #C02F62
triadic
#C02FAB #ABC02F #2FABC0
tetradic
#C02FAB #C08D2F #2FC044 #2F62C0
square
#C02FAB #C08D2F #2FC044 #2F62C0
split-complementary
#C02FAB #62C02F #2FC08D
monochromatic
#5E1753 #8F237F #C02FAB #D656C3 #E288D5

Accessibility & contrast

On white

4.96
#C02FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C02FAB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FAB#FFFFFF#000000##FFFFFF
##C02FAB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#C93C6B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02fab;
/* rgb */ color: rgb(192, 47, 171);
/* oklch */ color: oklch(57.4% 0.220 334.8);
Tailwind
colors: {
  custom: {
    50: '#d777c4',
    500: '#c02fab',
    950: '#000000',
  },
}
SCSS
$custom: #c02fab;
$custom-light: #d777c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fab",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 308.69,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57415,
    "c": 0.22029,
    "h": 334.8
  },
  "luminance": 0.1618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C02FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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