#AF2BB7#AF2BB7

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

Color values

HEX#AF2BB7
RGBrgb(175, 43, 183)
HSLhsl(297, 62%, 44%)
HSVhsv(297, 77%, 72%)
CMYKcmyk(4.4%, 76.5%, 0%, 28.2%)
CIE-LABlab(44.61, 67.81, -45.70)
CIE-LCHlch(44.61, 81.77, 326.02°)
OKLaboklab(55.22% 0.1853 -0.1273)
OKLCHoklch(55.22% 0.225 325.5)
XYZxyz(27.0897, 14.2624, 46.1167)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BB7 #33B72B
analogous
#692BB7 #AF2BB7 #B72B79
triadic
#AF2BB7 #B7AF2B #2BB7AF
tetradic
#AF2BB7 #B7692B #33B72B #2B79B7
square
#AF2BB7 #B7692B #33B72B #2B79B7
split-complementary
#AF2BB7 #79B72B #2BB769
monochromatic
#501454 #801F85 #AF2BB7 #CD4BD5 #DB7CE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2BB7#FFFFFF#000000##FFFFFF
##AF2BB71.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)
#005FBB
Deuteranopia (green-blind)
#4B6FB4
Tritanopia (blue-blind)
#B34570
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2bb7;
/* rgb */ color: rgb(175, 43, 183);
/* oklch */ color: oklch(55.2% 0.225 325.5);
Tailwind
colors: {
  custom: {
    50: '#cb74cd',
    500: '#af2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #af2bb7;
$custom-light: #cb74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bb7",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 296.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5522,
    "c": 0.22477,
    "h": 325.5
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#AF2BB7
secondary
#7AC975
accent
#E5434C
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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