#AF59D7#AF59D7

#AF59D7 is a mid, vivid purple. Relative luminance 0.212; OKLCH L 62.0% C 0.196 H 313.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF59D7
RGBrgb(175, 89, 215)
HSLhsl(281, 61%, 60%)
HSVhsv(281, 59%, 84%)
CMYKcmyk(18.6%, 58.6%, 0%, 15.7%)
CIE-LABlab(53.13, 55.26, -50.58)
CIE-LCHlch(53.13, 74.92, 317.53°)
OKLaboklab(61.95% 0.1352 -0.1418)
OKLCHoklch(61.95% 0.196 313.6)
XYZxyz(33.5152, 21.1660, 66.5967)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59D7 #81D759
analogous
#7059D7 #AF59D7 #D759C0
triadic
#AF59D7 #D7AF59 #59D7AF
tetradic
#AF59D7 #D77059 #81D759 #59C0D7
square
#AF59D7 #D77059 #81D759 #59C0D7
split-complementary
#AF59D7 #C0D759 #59D770
monochromatic
#6F2392 #952FC4 #AF59D7 #C78AE3 #DFBCEF

Accessibility & contrast

On white

4.01
#AF59D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF59D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59D7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59D7#FFFFFF#000000##000000
##AF59D71.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#317ADB
Deuteranopia (green-blind)
#5481D4
Tritanopia (blue-blind)
#AB6F90
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af59d7;
/* rgb */ color: rgb(175, 89, 215);
/* oklch */ color: oklch(62.0% 0.196 313.6);
Tailwind
colors: {
  custom: {
    50: '#ca8ce4',
    500: '#af59d7',
    950: '#000000',
  },
}
SCSS
$custom: #af59d7;
$custom-light: #ca8ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#af59d7",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 215
  },
  "hsl": {
    "h": 280.952,
    "s": 61.165,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61953,
    "c": 0.19594,
    "h": 313.6
  },
  "luminance": 0.21165
}

Semantic roles & 50–950 ramp

primary
#AF59D7
secondary
#BDDEAD
accent
#E44477
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C15
muted
#827D84

Preview Lab

Preview with #AF59D7

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

Preview Lab → · Contrast checker → · Palette generator →

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