#AF50DA#AF50DA

#AF50DA is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.0% C 0.212 H 313.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF50DA
RGBrgb(175, 80, 218)
HSLhsl(281, 65%, 58%)
HSVhsv(281, 63%, 85%)
CMYKcmyk(19.7%, 63.3%, 0%, 14.5%)
CIE-LABlab(51.74, 60.15, -54.50)
CIE-LCHlch(51.74, 81.17, 317.82°)
OKLaboklab(61% 0.146 -0.1532)
OKLCHoklch(61% 0.212 313.6)
XYZxyz(33.2006, 19.9142, 68.4110)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50DA #7BDA50
analogous
#6A50DA #AF50DA #DA50C0
triadic
#AF50DA #DAAF50 #50DAAF
tetradic
#AF50DA #DA6A50 #7BDA50 #50C0DA
square
#AF50DA #DA6A50 #7BDA50 #50C0DA
split-complementary
#AF50DA #C0DA50 #50DA6A
monochromatic
#6D1F91 #9329C3 #AF50DA #C683E5 #DDB5EF

Accessibility & contrast

On white

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

On black

4.98
#AF50DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50DA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50DA#FFFFFF#000000##000000
##AF50DA1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1276DE
Deuteranopia (green-blind)
#497ED7
Tritanopia (blue-blind)
#AB6A8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af50da;
/* rgb */ color: rgb(175, 80, 218);
/* oklch */ color: oklch(61.0% 0.212 313.6);
Tailwind
colors: {
  custom: {
    50: '#ca87e6',
    500: '#af50da',
    950: '#000000',
  },
}
SCSS
$custom: #af50da;
$custom-light: #ca87e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af50da",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 218
  },
  "hsl": {
    "h": 281.304,
    "s": 65.094,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60999,
    "c": 0.21168,
    "h": 313.6
  },
  "luminance": 0.19913
}

Semantic roles & 50–950 ramp

primary
#AF50DA
secondary
#B9DEA8
accent
#E84074
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50DA

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

Preview Lab → · Contrast checker → · Palette generator →

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