#C02BA8#C02BA8

#C02BA8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.222 H 335.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#C02BA8
RGBrgb(192, 43, 168)
HSLhsl(310, 63%, 46%)
HSVhsv(310, 78%, 75%)
CMYKcmyk(0%, 77.6%, 12.5%, 24.7%)
CIE-LABlab(46.66, 69.08, -33.41)
CIE-LCHlch(46.66, 76.73, 334.19°)
OKLaboklab(56.97% 0.2025 -0.0912)
OKLCHoklch(56.97% 0.222 335.7)
XYZxyz(29.6705, 15.7641, 38.5184)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02BA8 #2BC043
analogous
#8D2BC0 #C02BA8 #C02B5E
triadic
#C02BA8 #A8C02B #2BA8C0
tetradic
#C02BA8 #C08D2B #2BC043 #2B5EC0
square
#C02BA8 #C08D2B #2BC043 #2B5EC0
split-complementary
#C02BA8 #5EC02B #2BC08D
monochromatic
#5C1550 #8E207C #C02BA8 #D850C2 #E382D3

Accessibility & contrast

On white

5.06
#C02BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#C02BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02BA8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02BA8#FFFFFF#000000##FFFFFF
##C02BA81.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#6376A5
Tritanopia (blue-blind)
#CA3868
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02ba8;
/* rgb */ color: rgb(192, 43, 168);
/* oklch */ color: oklch(57.0% 0.222 335.7);
Tailwind
colors: {
  custom: {
    50: '#d775c2',
    500: '#c02ba8',
    950: '#000000',
  },
}
SCSS
$custom: #c02ba8;
$custom-light: #d775c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ba8",
  "rgb": {
    "r": 192,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 309.664,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56973,
    "c": 0.2221,
    "h": 335.7
  },
  "luminance": 0.15761
}

Semantic roles & 50–950 ramp

primary
#C02BA8
secondary
#7BCC88
accent
#E65C41
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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