#AF50D7#AF50D7

#AF50D7 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 60.8% C 0.209 H 314.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF50D7
RGBrgb(175, 80, 215)
HSLhsl(282, 63%, 58%)
HSVhsv(282, 63%, 84%)
CMYKcmyk(18.6%, 62.8%, 0%, 15.7%)
CIE-LABlab(51.56, 59.53, -53.08)
CIE-LCHlch(51.56, 79.76, 318.28°)
OKLaboklab(60.81% 0.1461 -0.1491)
OKLCHoklch(60.81% 0.209 314.4)
XYZxyz(32.8116, 19.7586, 66.3622)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50D7 #78D750
analogous
#6B50D7 #AF50D7 #D750BC
triadic
#AF50D7 #D7AF50 #50D7AF
tetradic
#AF50D7 #D76B50 #78D750 #50BCD7
square
#AF50D7 #D76B50 #78D750 #50BCD7
split-complementary
#AF50D7 #BCD750 #50D76B
monochromatic
#6C208C #932BBE #AF50D7 #C682E2 #DDB4EE

Accessibility & contrast

On white

4.24
#AF50D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF50D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50D7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50D7#FFFFFF#000000##000000
##AF50D71.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A76DB
Deuteranopia (green-blind)
#4C7DD4
Tritanopia (blue-blind)
#AC698C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af50d7;
/* rgb */ color: rgb(175, 80, 215);
/* oklch */ color: oklch(60.8% 0.209 314.4);
Tailwind
colors: {
  custom: {
    50: '#ca87e4',
    500: '#af50d7',
    950: '#000000',
  },
}
SCSS
$custom: #af50d7;
$custom-light: #ca87e4;
$custom-dark: #000000;
JSON
{
  "hex": "#af50d7",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 215
  },
  "hsl": {
    "h": 282.222,
    "s": 62.791,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60814,
    "c": 0.20873,
    "h": 314.4
  },
  "luminance": 0.19758
}

Semantic roles & 50–950 ramp

primary
#AF50D7
secondary
#B6DCA6
accent
#E64273
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50D7

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

Preview Lab → · Contrast checker → · Palette generator →

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