#AF2BB5#AF2BB5

#AF2BB5 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.223 H 326.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF2BB5
RGBrgb(175, 43, 181)
HSLhsl(297, 62%, 44%)
HSVhsv(297, 76%, 71%)
CMYKcmyk(3.3%, 76.2%, 0%, 29%)
CIE-LABlab(44.49, 67.48, -44.71)
CIE-LCHlch(44.49, 80.95, 326.47°)
OKLaboklab(55.1% 0.1854 -0.1244)
OKLCHoklch(55.1% 0.223 326.1)
XYZxyz(26.8830, 14.1798, 45.0281)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BB5 #31B52B
analogous
#6A2BB5 #AF2BB5 #B52B76
triadic
#AF2BB5 #B5AF2B #2BB5AF
tetradic
#AF2BB5 #B56A2B #31B52B #2B76B5
square
#AF2BB5 #B56A2B #31B52B #2B76B5
split-complementary
#AF2BB5 #76B52B #2BB56A
monochromatic
#4F1452 #7F1F84 #AF2BB5 #CE49D4 #DB7BE0

Accessibility & contrast

On white

5.48
#AF2BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF2BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BB5
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BB5#FFFFFF#000000##FFFFFF
##AF2BB51.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2bb5;
/* rgb */ color: rgb(175, 43, 181);
/* oklch */ color: oklch(55.1% 0.223 326.1);
Tailwind
colors: {
  custom: {
    50: '#cb74cc',
    500: '#af2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #af2bb5;
$custom-light: #cb74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bb5",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 297.391,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55099,
    "c": 0.22324,
    "h": 326.1
  },
  "luminance": 0.14178
}

Semantic roles & 50–950 ramp

primary
#AF2BB5
secondary
#78C874
accent
#E5434A
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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