#AF39D2#AF39D2

#AF39D2 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.233 H 317.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF39D2
RGBrgb(175, 57, 210)
HSLhsl(286, 63%, 52%)
HSVhsv(286, 73%, 82%)
CMYKcmyk(16.7%, 72.9%, 0%, 17.6%)
CIE-LABlab(47.87, 68.02, -56.14)
CIE-LCHlch(47.87, 88.20, 320.46°)
OKLaboklab(58.07% 0.1707 -0.1579)
OKLCHoklch(58.07% 0.233 317.2)
XYZxyz(30.7735, 16.6947, 62.5617)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF39D2 #5CD239
analogous
#6339D2 #AF39D2 #D239A8
triadic
#AF39D2 #D2AF39 #39D2AF
tetradic
#AF39D2 #D26339 #5CD239 #39A8D2
square
#AF39D2 #D26339 #5CD239 #39A8D2
split-complementary
#AF39D2 #A8D239 #39D263
monochromatic
#611B76 #8A26A8 #AF39D2 #C36BDD #D79DE9

Accessibility & contrast

On white

4.84
#AF39D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF39D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF39D2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF39D2#FFFFFF#000000##FFFFFF
##AF39D21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#3C75CF
Tritanopia (blue-blind)
#AD5983
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af39d2;
/* rgb */ color: rgb(175, 57, 210);
/* oklch */ color: oklch(58.1% 0.233 317.2);
Tailwind
colors: {
  custom: {
    50: '#cb7be0',
    500: '#af39d2',
    950: '#000000',
  },
}
SCSS
$custom: #af39d2;
$custom-light: #cb7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#af39d2",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 286.275,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58071,
    "c": 0.23255,
    "h": 317.2
  },
  "luminance": 0.16693
}

Semantic roles & 50–950 ramp

primary
#AF39D2
secondary
#A1D592
accent
#E64267
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF39D2

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

Preview Lab → · Contrast checker → · Palette generator →

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