#AF50DB#AF50DB

#AF50DB is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.1% C 0.213 H 313.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF50DB
RGBrgb(175, 80, 219)
HSLhsl(281, 66%, 59%)
HSVhsv(281, 63%, 86%)
CMYKcmyk(20.1%, 63.5%, 0%, 14.1%)
CIE-LABlab(51.80, 60.36, -54.98)
CIE-LCHlch(51.80, 81.64, 317.67°)
OKLaboklab(61.06% 0.146 -0.1546)
OKLCHoklch(61.06% 0.213 313.4)
XYZxyz(33.3318, 19.9667, 69.1022)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50DB #7CDB50
analogous
#6950DB #AF50DB #DB50C1
triadic
#AF50DB #DBAF50 #50DBAF
tetradic
#AF50DB #DB6950 #7CDB50 #50C1DB
square
#AF50DB #DB6950 #7CDB50 #50C1DB
split-complementary
#AF50DB #C1DB50 #50DB69
monochromatic
#6E1E92 #9429C5 #AF50DB #C683E5 #DDB6F0

Accessibility & contrast

On white

4.21
#AF50DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF50DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50DB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50DB#FFFFFF#000000##000000
##AF50DB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F76DF
Deuteranopia (green-blind)
#487ED8
Tritanopia (blue-blind)
#AB6B8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af50db;
/* rgb */ color: rgb(175, 80, 219);
/* oklch */ color: oklch(61.1% 0.213 313.4);
Tailwind
colors: {
  custom: {
    50: '#ca87e7',
    500: '#af50db',
    950: '#000000',
  },
}
SCSS
$custom: #af50db;
$custom-light: #ca87e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af50db",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 219
  },
  "hsl": {
    "h": 281.007,
    "s": 65.877,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61061,
    "c": 0.21266,
    "h": 313.4
  },
  "luminance": 0.19966
}

Semantic roles & 50–950 ramp

primary
#AF50DB
secondary
#B9DFA8
accent
#E93F75
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50DB

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

Preview Lab → · Contrast checker → · Palette generator →

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