#AF50D5#AF50D5

#AF50D5 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.7% C 0.207 H 315.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF50D5
RGBrgb(175, 80, 213)
HSLhsl(283, 61%, 57%)
HSVhsv(283, 62%, 84%)
CMYKcmyk(17.8%, 62.4%, 0%, 16.5%)
CIE-LABlab(51.45, 59.12, -52.13)
CIE-LCHlch(51.45, 78.82, 318.60°)
OKLaboklab(60.69% 0.1462 -0.1463)
OKLCHoklch(60.69% 0.207 315)
XYZxyz(32.5562, 19.6565, 65.0170)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50D5 #76D550
analogous
#6C50D5 #AF50D5 #D550B9
triadic
#AF50D5 #D5AF50 #50D5AF
tetradic
#AF50D5 #D56C50 #76D550 #50B9D5
square
#AF50D5 #D56C50 #76D550 #50B9D5
split-complementary
#AF50D5 #B9D550 #50D56C
monochromatic
#6C218A #922DBB #AF50D5 #C681E1 #DCB3ED

Accessibility & contrast

On white

4.26
#AF50D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF50D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50D5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50D5#FFFFFF#000000##000000
##AF50D51.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D9
Deuteranopia (green-blind)
#4D7DD2
Tritanopia (blue-blind)
#AC688B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af50d5;
/* rgb */ color: rgb(175, 80, 213);
/* oklch */ color: oklch(60.7% 0.207 315.0);
Tailwind
colors: {
  custom: {
    50: '#ca87e2',
    500: '#af50d5',
    950: '#000000',
  },
}
SCSS
$custom: #af50d5;
$custom-light: #ca87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af50d5",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 213
  },
  "hsl": {
    "h": 282.857,
    "s": 61.29,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.20679,
    "h": 315
  },
  "luminance": 0.19655
}

Semantic roles & 50–950 ramp

primary
#AF50D5
secondary
#B5DBA6
accent
#E44371
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50D5

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

Preview Lab → · Contrast checker → · Palette generator →

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