#AF2CB5#AF2CB5

#AF2CB5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.222 H 326.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB5
RGBrgb(175, 44, 181)
HSLhsl(297, 61%, 44%)
HSVhsv(297, 76%, 71%)
CMYKcmyk(3.3%, 75.7%, 0%, 29%)
CIE-LABlab(44.59, 67.18, -44.55)
CIE-LCHlch(44.59, 80.60, 326.45°)
OKLaboklab(55.17% 0.1845 -0.1239)
OKLCHoklch(55.17% 0.222 326.1)
XYZxyz(26.9198, 14.2534, 45.0404)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB5 #32B52C
analogous
#6B2CB5 #AF2CB5 #B52C77
triadic
#AF2CB5 #B5AF2C #2CB5AF
tetradic
#AF2CB5 #B56B2C #32B52C #2C77B5
square
#AF2CB5 #B56B2C #32B52C #2C77B5
split-complementary
#AF2CB5 #77B52C #2CB56B
monochromatic
#501453 #7F2084 #AF2CB5 #CD4BD3 #DB7CDF

Accessibility & contrast

On white

5.45
#AF2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF2CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB5#FFFFFF#000000##FFFFFF
##AF2CB51.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#4D6FB2
Tritanopia (blue-blind)
#B4446F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2cb5;
/* rgb */ color: rgb(175, 44, 181);
/* oklch */ color: oklch(55.2% 0.222 326.1);
Tailwind
colors: {
  custom: {
    50: '#cb74cc',
    500: '#af2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb5;
$custom-light: #cb74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb5",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 297.372,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55174,
    "c": 0.22228,
    "h": 326.1
  },
  "luminance": 0.14252
}

Semantic roles & 50–950 ramp

primary
#AF2CB5
secondary
#79C875
accent
#E4444B
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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