#AF2CB1#AF2CB1

#AF2CB1 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.219 H 327.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB1
RGBrgb(175, 44, 177)
HSLhsl(299, 60%, 43%)
HSVhsv(299, 75%, 69%)
CMYKcmyk(1.1%, 75.1%, 0%, 30.6%)
CIE-LABlab(44.36, 66.52, -42.56)
CIE-LCHlch(44.36, 78.96, 327.39°)
OKLaboklab(54.94% 0.1847 -0.1181)
OKLCHoklch(54.94% 0.219 327.4)
XYZxyz(26.5153, 14.0916, 42.9098)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB1 #2EB12C
analogous
#6C2CB1 #AF2CB1 #B12C70
triadic
#AF2CB1 #B1AF2C #2CB1AF
tetradic
#AF2CB1 #B16C2C #2EB12C #2C70B1
square
#AF2CB1 #B16C2C #2EB12C #2C70B1
split-complementary
#AF2CB1 #70B12C #2CB16C
monochromatic
#4E144F #7F2080 #AF2CB1 #D049D2 #DC7ADE

Accessibility & contrast

On white

5.50
#AF2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF2CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB1
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB1#FFFFFF#000000##FFFFFF
##AF2CB11.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065EB5
Deuteranopia (green-blind)
#4F6FAE
Tritanopia (blue-blind)
#B4426D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2cb1;
/* rgb */ color: rgb(175, 44, 177);
/* oklch */ color: oklch(54.9% 0.219 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c9',
    500: '#af2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb1;
$custom-light: #cb74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb1",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 299.098,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54936,
    "c": 0.2192,
    "h": 327.4
  },
  "luminance": 0.1409
}

Semantic roles & 50–950 ramp

primary
#AF2CB1
secondary
#74C673
accent
#E34447
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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