#C22F9D#C22F9D

#C22F9D is a mid, highly saturated pink. Relative luminance 0.159; OKLCH L 57.0% C 0.212 H 340.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C22F9D
RGBrgb(194, 47, 157)
HSLhsl(315, 61%, 47%)
HSVhsv(315, 76%, 76%)
CMYKcmyk(0%, 75.8%, 19.1%, 23.9%)
CIE-LABlab(46.90, 66.86, -26.47)
CIE-LCHlch(46.90, 71.91, 338.40°)
OKLaboklab(57.04% 0.1998 -0.0715)
OKLCHoklch(57.04% 0.212 340.3)
XYZxyz(29.3513, 15.9396, 33.4226)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C22F9D #2FC254
analogous
#9E2FC2 #C22F9D #C22F54
triadic
#C22F9D #9DC22F #2F9DC2
tetradic
#C22F9D #C29E2F #2FC254 #2F54C2
square
#C22F9D #C29E2F #2FC254 #2F54C2
split-complementary
#C22F9D #54C22F #2FC29E
monochromatic
#5F174D #912375 #C22F9D #D658B7 #E289CC

Accessibility & contrast

On white

5.02
#C22F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#C22F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C22F9D
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C22F9D#FFFFFF#000000##FFFFFF
##C22F9D1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#6B789A
Tritanopia (blue-blind)
#CE3463
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c22f9d;
/* rgb */ color: rgb(194, 47, 157);
/* oklch */ color: oklch(57.0% 0.212 340.3);
Tailwind
colors: {
  custom: {
    50: '#d977ba',
    500: '#c22f9d',
    950: '#000000',
  },
}
SCSS
$custom: #c22f9d;
$custom-light: #d977ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c22f9d",
  "rgb": {
    "r": 194,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 315.102,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57036,
    "c": 0.21217,
    "h": 340.3
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#C22F9D
secondary
#81CC94
accent
#E46C44
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C22F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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