#C22FB3#C22FB3

#C22FB3 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.227 H 332.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C22FB3
RGBrgb(194, 47, 179)
HSLhsl(306, 61%, 47%)
HSVhsv(306, 76%, 76%)
CMYKcmyk(0%, 75.8%, 7.7%, 23.9%)
CIE-LABlab(47.96, 69.98, -37.84)
CIE-LCHlch(47.96, 79.56, 331.60°)
OKLaboklab(58.14% 0.2017 -0.104)
OKLCHoklch(58.14% 0.227 332.7)
XYZxyz(31.4015, 16.7597, 44.2202)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FB3 #2FC23E
analogous
#872FC2 #C22FB3 #C22F6A
triadic
#C22FB3 #B3C22F #2FB3C2
tetradic
#C22FB3 #C2872F #2FC23E #2F6AC2
square
#C22FB3 #C2872F #2FC23E #2F6AC2
split-complementary
#C22FB3 #6AC22F #2FC287
monochromatic
#5F1758 #912386 #C22FB3 #D658CA #E289D9

Accessibility & contrast

On white

4.83
#C22FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#C22FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22FB3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22FB3#FFFFFF#000000##FFFFFF
##C22FB31.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B7
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#CB406F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22fb3;
/* rgb */ color: rgb(194, 47, 179);
/* oklch */ color: oklch(58.1% 0.227 332.7);
Tailwind
colors: {
  custom: {
    50: '#d878ca',
    500: '#c22fb3',
    950: '#000000',
  },
}
SCSS
$custom: #c22fb3;
$custom-light: #d878ca;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fb3",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 306.122,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58144,
    "c": 0.22691,
    "h": 332.7
  },
  "luminance": 0.16757
}

Semantic roles & 50–950 ramp

primary
#C22FB3
secondary
#81CC88
accent
#E45444
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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