#C22FB2#C22FB2

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

Color values

HEX#C22FB2
RGBrgb(194, 47, 178)
HSLhsl(307, 61%, 47%)
HSVhsv(307, 76%, 76%)
CMYKcmyk(0%, 75.8%, 8.2%, 23.9%)
CIE-LABlab(47.90, 69.83, -37.33)
CIE-LCHlch(47.90, 79.19, 331.87°)
OKLaboklab(58.09% 0.2016 -0.1025)
OKLCHoklch(58.09% 0.226 333)
XYZxyz(31.3007, 16.7194, 43.6895)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FB2 #2FC23F
analogous
#892FC2 #C22FB2 #C22F68
triadic
#C22FB2 #B2C22F #2FB2C2
tetradic
#C22FB2 #C2892F #2FC23F #2F68C2
square
#C22FB2 #C2892F #2FC23F #2F68C2
split-complementary
#C22FB2 #68C22F #2FC289
monochromatic
#5F1758 #912385 #C22FB2 #D658C9 #E289D9

Accessibility & contrast

On white

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

On black

4.34
#C22FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C22FB2#FFFFFF#000000##FFFFFF
##C22FB21.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#CB3F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22fb2;
/* rgb */ color: rgb(194, 47, 178);
/* oklch */ color: oklch(58.1% 0.226 333.0);
Tailwind
colors: {
  custom: {
    50: '#d878c9',
    500: '#c22fb2',
    950: '#000000',
  },
}
SCSS
$custom: #c22fb2;
$custom-light: #d878c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fb2",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 306.531,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5809,
    "c": 0.22621,
    "h": 333
  },
  "luminance": 0.16717
}

Semantic roles & 50–950 ramp

primary
#C22FB2
secondary
#81CC89
accent
#E45544
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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