#C22FB8#C22FB8

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

Color values

HEX#C22FB8
RGBrgb(194, 47, 184)
HSLhsl(304, 61%, 47%)
HSVhsv(304, 76%, 76%)
CMYKcmyk(0%, 75.8%, 5.2%, 23.9%)
CIE-LABlab(48.22, 70.74, -40.36)
CIE-LCHlch(48.22, 81.44, 330.29°)
OKLaboklab(58.41% 0.2018 -0.1113)
OKLCHoklch(58.41% 0.23 331.1)
XYZxyz(31.9164, 16.9657, 46.9318)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FB8 #2FC239
analogous
#832FC2 #C22FB8 #C22F6E
triadic
#C22FB8 #B8C22F #2FB8C2
tetradic
#C22FB8 #C2832F #2FC239 #2F6EC2
square
#C22FB8 #C2832F #2FC239 #2F6EC2
split-complementary
#C22FB8 #6EC22F #2FC283
monochromatic
#5F175B #912389 #C22FB8 #D658CE #E289DC

Accessibility & contrast

On white

4.78
#C22FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#C22FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22FB8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22FB8#FFFFFF#000000##FFFFFF
##C22FB81.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F66BC
Deuteranopia (green-blind)
#5F7AB5
Tritanopia (blue-blind)
#CA4272
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c22fb8;
/* rgb */ color: rgb(194, 47, 184);
/* oklch */ color: oklch(58.4% 0.230 331.1);
Tailwind
colors: {
  custom: {
    50: '#d878ce',
    500: '#c22fb8',
    950: '#000000',
  },
}
SCSS
$custom: #c22fb8;
$custom-light: #d878ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c22fb8",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 304.082,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58415,
    "c": 0.23045,
    "h": 331.1
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C22FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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