#C02FA8#C02FA8

#C02FA8 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.218 H 335.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C02FA8
RGBrgb(192, 47, 168)
HSLhsl(310, 61%, 47%)
HSVhsv(310, 76%, 75%)
CMYKcmyk(0%, 75.5%, 12.5%, 24.7%)
CIE-LABlab(47.07, 67.93, -32.78)
CIE-LCHlch(47.07, 75.42, 334.24°)
OKLaboklab(57.26% 0.1991 -0.0895)
OKLCHoklch(57.26% 0.218 335.8)
XYZxyz(29.8231, 16.0694, 38.5692)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FA8 #2FC047
analogous
#902FC0 #C02FA8 #C02F60
triadic
#C02FA8 #A8C02F #2FA8C0
tetradic
#C02FA8 #C0902F #2FC047 #2F60C0
square
#C02FA8 #C0902F #2FC047 #2F60C0
split-complementary
#C02FA8 #60C02F #2FC090
monochromatic
#5E1752 #8F237D #C02FA8 #D656C1 #E288D3

Accessibility & contrast

On white

4.98
#C02FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C02FA8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FA8#FFFFFF#000000##FFFFFF
##C02FA81.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#6577A5
Tritanopia (blue-blind)
#CA3A69
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02fa8;
/* rgb */ color: rgb(192, 47, 168);
/* oklch */ color: oklch(57.3% 0.218 335.8);
Tailwind
colors: {
  custom: {
    50: '#d777c2',
    500: '#c02fa8',
    950: '#000000',
  },
}
SCSS
$custom: #c02fa8;
$custom-light: #d777c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fa8",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 309.931,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57261,
    "c": 0.21824,
    "h": 335.8
  },
  "luminance": 0.16067
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C02FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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