#C02FB6#C02FB6

#C02FB6 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.228 H 331.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C02FB6
RGBrgb(192, 47, 182)
HSLhsl(304, 61%, 47%)
HSVhsv(304, 76%, 75%)
CMYKcmyk(0%, 75.5%, 5.2%, 24.7%)
CIE-LABlab(47.78, 70.01, -39.91)
CIE-LCHlch(47.78, 80.58, 330.32°)
OKLaboklab(58% 0.1998 -0.11)
OKLCHoklch(58% 0.228 331.2)
XYZxyz(31.1982, 16.6194, 45.8116)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FB6 #2FC039
analogous
#822FC0 #C02FB6 #C02F6E
triadic
#C02FB6 #B6C02F #2FB6C0
tetradic
#C02FB6 #C0822F #2FC039 #2F6EC0
square
#C02FB6 #C0822F #2FC039 #2F6EC0
split-complementary
#C02FB6 #6EC02F #2FC082
monochromatic
#5E1759 #8F2387 #C02FB6 #D656CD #E288DC

Accessibility & contrast

On white

4.86
#C02FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C02FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FB6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FB6#FFFFFF#000000##FFFFFF
##C02FB61.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BA
Deuteranopia (green-blind)
#5E78B3
Tritanopia (blue-blind)
#C84271
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c02fb6;
/* rgb */ color: rgb(192, 47, 182);
/* oklch */ color: oklch(58.0% 0.228 331.2);
Tailwind
colors: {
  custom: {
    50: '#d777cc',
    500: '#c02fb6',
    950: '#000000',
  },
}
SCSS
$custom: #c02fb6;
$custom-light: #d777cc;
$custom-dark: #000000;
JSON
{
  "hex": "#c02fb6",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 304.138,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58002,
    "c": 0.22805,
    "h": 331.2
  },
  "luminance": 0.16617
}

Semantic roles & 50–950 ramp

primary
#C02FB6
secondary
#7FCB85
accent
#E44F44
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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