#C22FB7#C22FB7

#C22FB7 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.4% C 0.230 H 331.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C22FB7
RGBrgb(194, 47, 183)
HSLhsl(304, 61%, 47%)
HSVhsv(304, 76%, 76%)
CMYKcmyk(0%, 75.8%, 5.7%, 23.9%)
CIE-LABlab(48.16, 70.58, -39.86)
CIE-LCHlch(48.16, 81.06, 330.55°)
OKLaboklab(58.36% 0.2018 -0.1098)
OKLCHoklch(58.36% 0.23 331.4)
XYZxyz(31.8119, 16.9239, 46.3817)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FB7 #2FC23A
analogous
#842FC2 #C22FB7 #C22F6D
triadic
#C22FB7 #B7C22F #2FB7C2
tetradic
#C22FB7 #C2842F #2FC23A #2F6DC2
square
#C22FB7 #C2842F #2FC23A #2F6DC2
split-complementary
#C22FB7 #6DC22F #2FC284
monochromatic
#5F175A #912389 #C22FB7 #D658CD #E289DC

Accessibility & contrast

On white

4.79
#C22FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#C22FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22FB7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22FB7#FFFFFF#000000##FFFFFF
##C22FB71.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BB
Deuteranopia (green-blind)
#5F79B4
Tritanopia (blue-blind)
#CA4271
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22fb7;
/* rgb */ color: rgb(194, 47, 183);
/* oklch */ color: oklch(58.4% 0.230 331.4);
Tailwind
colors: {
  custom: {
    50: '#d878cd',
    500: '#c22fb7',
    950: '#000000',
  },
}
SCSS
$custom: #c22fb7;
$custom-light: #d878cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fb7",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 304.49,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5836,
    "c": 0.22974,
    "h": 331.4
  },
  "luminance": 0.16921
}

Semantic roles & 50–950 ramp

primary
#C22FB7
secondary
#81CC86
accent
#E45044
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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