#AF50D9#AF50D9

#AF50D9 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 60.9% C 0.211 H 313.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF50D9
RGBrgb(175, 80, 217)
HSLhsl(282, 64%, 58%)
HSVhsv(282, 63%, 85%)
CMYKcmyk(19.4%, 63.1%, 0%, 14.9%)
CIE-LABlab(51.68, 59.94, -54.03)
CIE-LCHlch(51.68, 80.70, 317.97°)
OKLaboklab(60.94% 0.1461 -0.1519)
OKLCHoklch(60.94% 0.211 313.9)
XYZxyz(33.0701, 19.8620, 67.7239)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50D9 #7AD950
analogous
#6A50D9 #AF50D9 #D950BE
triadic
#AF50D9 #D9AF50 #50D9AF
tetradic
#AF50D9 #D96A50 #7AD950 #50BED9
square
#AF50D9 #D96A50 #7AD950 #50BED9
split-complementary
#AF50D9 #BED950 #50D96A
monochromatic
#6D1F8F #932AC2 #AF50D9 #C682E4 #DDB5EF

Accessibility & contrast

On white

4.22
#AF50D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF50D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50D9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50D9#FFFFFF#000000##000000
##AF50D91.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1576DD
Deuteranopia (green-blind)
#4A7ED6
Tritanopia (blue-blind)
#AB6A8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af50d9;
/* rgb */ color: rgb(175, 80, 217);
/* oklch */ color: oklch(60.9% 0.211 313.9);
Tailwind
colors: {
  custom: {
    50: '#ca87e5',
    500: '#af50d9',
    950: '#000000',
  },
}
SCSS
$custom: #af50d9;
$custom-light: #ca87e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af50d9",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 217
  },
  "hsl": {
    "h": 281.606,
    "s": 64.319,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60937,
    "c": 0.2107,
    "h": 313.9
  },
  "luminance": 0.19861
}

Semantic roles & 50–950 ramp

primary
#AF50D9
secondary
#B8DEA7
accent
#E74074
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50D9

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

Preview Lab → · Contrast checker → · Palette generator →

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