#C22FAB#C22FAB

#C22FAB is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.221 H 335.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C22FAB
RGBrgb(194, 47, 171)
HSLhsl(309, 61%, 47%)
HSVhsv(309, 76%, 76%)
CMYKcmyk(0%, 75.8%, 11.9%, 23.9%)
CIE-LABlab(47.55, 68.81, -33.76)
CIE-LCHlch(47.55, 76.65, 333.86°)
OKLaboklab(57.72% 0.2012 -0.0923)
OKLCHoklch(57.72% 0.221 335.4)
XYZxyz(30.6158, 16.4454, 40.0820)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FAB #2FC246
analogous
#902FC2 #C22FAB #C22F61
triadic
#C22FAB #ABC22F #2FABC2
tetradic
#C22FAB #C2902F #2FC246 #2F61C2
square
#C22FAB #C2902F #2FC246 #2F61C2
split-complementary
#C22FAB #61C22F #2FC290
monochromatic
#5F1754 #912380 #C22FAB #D658C3 #E289D4

Accessibility & contrast

On white

4.90
#C22FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#C22FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22FAB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22FAB#FFFFFF#000000##FFFFFF
##C22FAB1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#6579A8
Tritanopia (blue-blind)
#CC3B6B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c22fab;
/* rgb */ color: rgb(194, 47, 171);
/* oklch */ color: oklch(57.7% 0.221 335.4);
Tailwind
colors: {
  custom: {
    50: '#d877c4',
    500: '#c22fab',
    950: '#000000',
  },
}
SCSS
$custom: #c22fab;
$custom-light: #d877c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fab",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 309.388,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57724,
    "c": 0.22136,
    "h": 335.4
  },
  "luminance": 0.16443
}

Semantic roles & 50–950 ramp

primary
#C22FAB
secondary
#81CC8C
accent
#E45D44
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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