#AF50DE#AF50DE

#AF50DE is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.2% C 0.216 H 312.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF50DE
RGBrgb(175, 80, 222)
HSLhsl(280, 68%, 59%)
HSVhsv(280, 64%, 87%)
CMYKcmyk(21.2%, 64%, 0%, 12.9%)
CIE-LABlab(51.98, 60.98, -56.39)
CIE-LCHlch(51.98, 83.06, 317.24°)
OKLaboklab(61.25% 0.1459 -0.1588)
OKLCHoklch(61.25% 0.216 312.6)
XYZxyz(33.7303, 20.1261, 71.2010)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50DE #7FDE50
analogous
#6850DE #AF50DE #DE50C6
triadic
#AF50DE #DEAF50 #50DEAF
tetradic
#AF50DE #DE6850 #7FDE50 #50C6DE
square
#AF50DE #DE6850 #7FDE50 #50C6DE
split-complementary
#AF50DE #C6DE50 #50DE68
monochromatic
#6F1C97 #9426CB #AF50DE #C783E8 #DEB7F1

Accessibility & contrast

On white

4.18
#AF50DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF50DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50DE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50DE#FFFFFF#000000##000000
##AF50DE1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E2
Deuteranopia (green-blind)
#457EDB
Tritanopia (blue-blind)
#AA6C90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af50de;
/* rgb */ color: rgb(175, 80, 222);
/* oklch */ color: oklch(61.2% 0.216 312.6);
Tailwind
colors: {
  custom: {
    50: '#cb87e9',
    500: '#af50de',
    950: '#000000',
  },
}
SCSS
$custom: #af50de;
$custom-light: #cb87e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af50de",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 222
  },
  "hsl": {
    "h": 280.141,
    "s": 68.269,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.21561,
    "h": 312.6
  },
  "luminance": 0.20125
}

Semantic roles & 50–950 ramp

primary
#AF50DE
secondary
#BCE1A9
accent
#EB3D76
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50DE

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

Preview Lab → · Contrast checker → · Palette generator →

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