#C02EC7#C02EC7

#C02EC7 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.9% C 0.241 H 326.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C02EC7
RGBrgb(192, 46, 199)
HSLhsl(297, 62%, 48%)
HSVhsv(297, 77%, 78%)
CMYKcmyk(3.5%, 76.9%, 0%, 22%)
CIE-LABlab(48.62, 72.98, -48.46)
CIE-LCHlch(48.62, 87.60, 326.41°)
OKLaboklab(58.91% 0.2003 -0.1349)
OKLCHoklch(58.91% 0.241 326)
XYZxyz(33.0234, 17.2863, 55.6190)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02EC7 #35C72E
analogous
#732EC7 #C02EC7 #C72E81
triadic
#C02EC7 #C7C02E #2EC7C0
tetradic
#C02EC7 #C7732E #35C72E #2E81C7
square
#C02EC7 #C7732E #35C72E #2E81C7
split-complementary
#C02EC7 #81C72E #2EC773
monochromatic
#601764 #902395 #C02EC7 #D359D9 #E08BE4

Accessibility & contrast

On white

4.71
#C02EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#C02EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02EC7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02EC7#FFFFFF#000000##FFFFFF
##C02EC71.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#537AC3
Tritanopia (blue-blind)
#C54A7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c02ec7;
/* rgb */ color: rgb(192, 46, 199);
/* oklch */ color: oklch(58.9% 0.241 326.0);
Tailwind
colors: {
  custom: {
    50: '#d778d9',
    500: '#c02ec7',
    950: '#000000',
  },
}
SCSS
$custom: #c02ec7;
$custom-light: #d778d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ec7",
  "rgb": {
    "r": 192,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 297.255,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58906,
    "c": 0.24146,
    "h": 326
  },
  "luminance": 0.17284
}

Semantic roles & 50–950 ramp

primary
#C02EC7
secondary
#86CE83
accent
#E6424A
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #C02EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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