#C22DB8#C22DB8

#C22DB8 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.3% C 0.232 H 331.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C22DB8
RGBrgb(194, 45, 184)
HSLhsl(304, 62%, 47%)
HSVhsv(304, 77%, 76%)
CMYKcmyk(0%, 76.8%, 5.2%, 23.9%)
CIE-LABlab(48.02, 71.30, -40.67)
CIE-LCHlch(48.02, 82.09, 330.30°)
OKLaboklab(58.27% 0.2035 -0.1122)
OKLCHoklch(58.27% 0.232 331.1)
XYZxyz(31.8382, 16.8094, 46.9058)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22DB8 #2DC237
analogous
#822DC2 #C22DB8 #C22D6E
triadic
#C22DB8 #B8C22D #2DB8C2
tetradic
#C22DB8 #C2822D #2DC237 #2D6EC2
square
#C22DB8 #C2822D #2DC237 #2D6EC2
split-complementary
#C22DB8 #6EC22D #2DC282
monochromatic
#5F165A #902189 #C22DB8 #D755CF #E386DD

Accessibility & contrast

On white

4.81
#C22DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#C22DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22DB8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22DB8#FFFFFF#000000##FFFFFF
##C22DB81.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BC
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#CA4171
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22db8;
/* rgb */ color: rgb(194, 45, 184);
/* oklch */ color: oklch(58.3% 0.232 331.1);
Tailwind
colors: {
  custom: {
    50: '#d977ce',
    500: '#c22db8',
    950: '#000000',
  },
}
SCSS
$custom: #c22db8;
$custom-light: #d977ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c22db8",
  "rgb": {
    "r": 194,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 304.027,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58273,
    "c": 0.23232,
    "h": 331.1
  },
  "luminance": 0.16807
}

Semantic roles & 50–950 ramp

primary
#C22DB8
secondary
#7ECD84
accent
#E54D42
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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