#AF50BF#AF50BF

#AF50BF is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.4% C 0.186 H 321.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF50BF
RGBrgb(175, 80, 191)
HSLhsl(291, 46%, 53%)
HSVhsv(291, 58%, 75%)
CMYKcmyk(8.4%, 58.1%, 0%, 25.1%)
CIE-LABlab(50.23, 54.76, -41.43)
CIE-LCHlch(50.23, 68.66, 322.89°)
OKLaboklab(59.42% 0.1456 -0.1151)
OKLCHoklch(59.42% 0.186 321.7)
XYZxyz(29.9508, 18.6143, 51.2954)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50BF #60BF50
analogous
#7750BF #AF50BF #BF5098
triadic
#AF50BF #BFAF50 #50BFAF
tetradic
#AF50BF #BF7750 #60BF50 #5098BF
square
#AF50BF #BF7750 #60BF50 #5098BF
split-complementary
#AF50BF #98BF50 #50BF77
monochromatic
#63286D #8C389A #AF50BF #C37DCF #D8AAE0

Accessibility & contrast

On white

4.45
#AF50BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF50BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50BF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50BF#FFFFFF#000000##000000
##AF50BF1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A71C2
Deuteranopia (green-blind)
#5C7BBC
Tritanopia (blue-blind)
#B16080
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af50bf;
/* rgb */ color: rgb(175, 80, 191);
/* oklch */ color: oklch(59.4% 0.186 321.7);
Tailwind
colors: {
  custom: {
    50: '#ca86d3',
    500: '#af50bf',
    950: '#000000',
  },
}
SCSS
$custom: #af50bf;
$custom-light: #ca86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af50bf",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 191
  },
  "hsl": {
    "h": 291.351,
    "s": 46.444,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59418,
    "c": 0.18556,
    "h": 321.7
  },
  "luminance": 0.18613
}

Semantic roles & 50–950 ramp

primary
#AF50BF
secondary
#A4CD9D
accent
#D65265
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF50BF

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

Preview Lab → · Contrast checker → · Palette generator →

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