#C02BAF#C02BAF

#C02BAF is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.3% C 0.227 H 333.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C02BAF
RGBrgb(192, 43, 175)
HSLhsl(307, 63%, 46%)
HSVhsv(307, 78%, 75%)
CMYKcmyk(0%, 77.6%, 8.9%, 24.7%)
CIE-LABlab(47.02, 70.09, -36.99)
CIE-LCHlch(47.02, 79.25, 332.18°)
OKLaboklab(57.34% 0.2029 -0.1016)
OKLCHoklch(57.34% 0.227 333.4)
XYZxyz(30.3402, 16.0320, 42.0457)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02BAF #2BC03C
analogous
#862BC0 #C02BAF #C02B64
triadic
#C02BAF #AFC02B #2BAFC0
tetradic
#C02BAF #C0862B #2BC03C #2B64C0
square
#C02BAF #C0862B #2BC03C #2B64C0
split-complementary
#C02BAF #64C02B #2BC086
monochromatic
#5C1554 #8E2081 #C02BAF #D850C8 #E382D8

Accessibility & contrast

On white

4.99
#C02BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C02BAF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02BAF#FFFFFF#000000##FFFFFF
##C02BAF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#C93B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02baf;
/* rgb */ color: rgb(192, 43, 175);
/* oklch */ color: oklch(57.3% 0.227 333.4);
Tailwind
colors: {
  custom: {
    50: '#d776c7',
    500: '#c02baf',
    950: '#000000',
  },
}
SCSS
$custom: #c02baf;
$custom-light: #d776c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c02baf",
  "rgb": {
    "r": 192,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 306.846,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.22687,
    "h": 333.4
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#C02BAF
secondary
#7BCC84
accent
#E65441
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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