#C22FB5#C22FB5

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

Color values

HEX#C22FB5
RGBrgb(194, 47, 181)
HSLhsl(305, 61%, 47%)
HSVhsv(305, 76%, 76%)
CMYKcmyk(0%, 75.8%, 6.7%, 23.9%)
CIE-LABlab(48.06, 70.28, -38.85)
CIE-LCHlch(48.06, 80.30, 331.07°)
OKLaboklab(58.25% 0.2017 -0.1069)
OKLCHoklch(58.25% 0.228 332.1)
XYZxyz(31.6052, 16.8412, 45.2932)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FB5 #2FC23C
analogous
#862FC2 #C22FB5 #C22F6C
triadic
#C22FB5 #B5C22F #2FB5C2
tetradic
#C22FB5 #C2862F #2FC23C #2F6CC2
square
#C22FB5 #C2862F #2FC23C #2F6CC2
split-complementary
#C22FB5 #6CC22F #2FC286
monochromatic
#5F1759 #912387 #C22FB5 #D658CB #E289DB

Accessibility & contrast

On white

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

On black

4.37
#C22FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C22FB5#FFFFFF#000000##FFFFFF
##C22FB51.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2465B9
Deuteranopia (green-blind)
#6079B2
Tritanopia (blue-blind)
#CA4170
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22fb5;
/* rgb */ color: rgb(194, 47, 181);
/* oklch */ color: oklch(58.3% 0.228 332.1);
Tailwind
colors: {
  custom: {
    50: '#d878cb',
    500: '#c22fb5',
    950: '#000000',
  },
}
SCSS
$custom: #c22fb5;
$custom-light: #d878cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fb5",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 305.306,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58251,
    "c": 0.22832,
    "h": 332.1
  },
  "luminance": 0.16839
}

Semantic roles & 50–950 ramp

primary
#C22FB5
secondary
#81CC87
accent
#E45244
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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