#AF39D4#AF39D4

#AF39D4 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.234 H 316.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF39D4
RGBrgb(175, 57, 212)
HSLhsl(286, 64%, 53%)
HSVhsv(286, 73%, 83%)
CMYKcmyk(17.5%, 73.1%, 0%, 16.9%)
CIE-LABlab(48.00, 68.40, -57.09)
CIE-LCHlch(48.00, 89.09, 320.15°)
OKLaboklab(58.2% 0.1705 -0.1607)
OKLCHoklch(58.2% 0.234 316.7)
XYZxyz(31.0242, 16.7950, 63.8821)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF39D4 #5ED439
analogous
#6139D4 #AF39D4 #D439AC
triadic
#AF39D4 #D4AF39 #39D4AF
tetradic
#AF39D4 #D46139 #5ED439 #39ACD4
square
#AF39D4 #D46139 #5ED439 #39ACD4
split-complementary
#AF39D4 #ACD439 #39D461
monochromatic
#621A78 #8B25AB #AF39D4 #C36BDF #D89EEA

Accessibility & contrast

On white

4.82
#AF39D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AF39D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF39D4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF39D4#FFFFFF#000000##FFFFFF
##AF39D41.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#3A75D1
Tritanopia (blue-blind)
#AD5A84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af39d4;
/* rgb */ color: rgb(175, 57, 212);
/* oklch */ color: oklch(58.2% 0.234 316.7);
Tailwind
colors: {
  custom: {
    50: '#cb7be2',
    500: '#af39d4',
    950: '#000000',
  },
}
SCSS
$custom: #af39d4;
$custom-light: #cb7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#af39d4",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 212
  },
  "hsl": {
    "h": 285.677,
    "s": 64.315,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58202,
    "c": 0.23428,
    "h": 316.7
  },
  "luminance": 0.16794
}

Semantic roles & 50–950 ramp

primary
#AF39D4
secondary
#A3D693
accent
#E74068
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF39D4

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

Preview Lab → · Contrast checker → · Palette generator →

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