#AF50B2#AF50B2

#AF50B2 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.7% C 0.173 H 326.3°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF50B2
RGBrgb(175, 80, 178)
HSLhsl(298, 39%, 51%)
HSVhsv(298, 55%, 70%)
CMYKcmyk(1.7%, 55.1%, 0%, 30.2%)
CIE-LABlab(49.58, 52.32, -34.90)
CIE-LCHlch(49.58, 62.90, 326.30°)
OKLaboklab(58.73% 0.1444 -0.0962)
OKLCHoklch(58.73% 0.173 326.3)
XYZxyz(28.5832, 18.0673, 44.0926)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50B2 #53B250
analogous
#7E50B2 #AF50B2 #B25084
triadic
#AF50B2 #B2AF50 #50B2AF
tetradic
#AF50B2 #B27E50 #53B250 #5084B2
square
#AF50B2 #B27E50 #53B250 #5084B2
split-complementary
#AF50B2 #84B250 #50B27E
monochromatic
#5D295E #863C89 #AF50B2 #C27AC5 #D6A5D7

Accessibility & contrast

On white

4.55
#AF50B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF50B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50B2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50B2#FFFFFF#000000##000000
##AF50B21.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#B35C79
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af50b2;
/* rgb */ color: rgb(175, 80, 178);
/* oklch */ color: oklch(58.7% 0.173 326.3);
Tailwind
colors: {
  custom: {
    50: '#c986c9',
    500: '#af50b2',
    950: '#000000',
  },
}
SCSS
$custom: #af50b2;
$custom-light: #c986c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af50b2",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 298.163,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58726,
    "c": 0.17349,
    "h": 326.3
  },
  "luminance": 0.18066
}

Semantic roles & 50–950 ramp

primary
#AF50B2
secondary
#9AC599
accent
#CF595D
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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