#C22FAF#C22FAF

#C22FAF is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.224 H 334.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C22FAF
RGBrgb(194, 47, 175)
HSLhsl(308, 61%, 47%)
HSVhsv(308, 76%, 76%)
CMYKcmyk(0%, 75.8%, 9.8%, 23.9%)
CIE-LABlab(47.75, 69.39, -35.81)
CIE-LCHlch(47.75, 78.08, 332.70°)
OKLaboklab(57.93% 0.2015 -0.0981)
OKLCHoklch(57.93% 0.224 334)
XYZxyz(31.0028, 16.6002, 42.1205)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22FAF #2FC242
analogous
#8C2FC2 #C22FAF #C22F66
triadic
#C22FAF #AFC22F #2FAFC2
tetradic
#C22FAF #C28C2F #2FC242 #2F66C2
square
#C22FAF #C28C2F #2FC242 #2F66C2
split-complementary
#C22FAF #66C22F #2FC28C
monochromatic
#5F1756 #912383 #C22FAF #D658C6 #E289D7

Accessibility & contrast

On white

4.86
#C22FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C22FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22FAF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22FAF#FFFFFF#000000##FFFFFF
##C22FAF1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B2
Deuteranopia (green-blind)
#6379AC
Tritanopia (blue-blind)
#CB3E6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c22faf;
/* rgb */ color: rgb(194, 47, 175);
/* oklch */ color: oklch(57.9% 0.224 334.0);
Tailwind
colors: {
  custom: {
    50: '#d877c7',
    500: '#c22faf',
    950: '#000000',
  },
}
SCSS
$custom: #c22faf;
$custom-light: #d877c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c22faf",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 307.755,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57932,
    "c": 0.22411,
    "h": 334
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#C22FAF
secondary
#81CC8A
accent
#E45844
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C22FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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