#AF3AD9#AF3AD9

#AF3AD9 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.238 H 315.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF3AD9
RGBrgb(175, 58, 217)
HSLhsl(284, 68%, 54%)
HSVhsv(284, 73%, 85%)
CMYKcmyk(19.4%, 73.3%, 0%, 14.9%)
CIE-LABlab(48.45, 69.00, -59.22)
CIE-LCHlch(48.45, 90.93, 319.36°)
OKLaboklab(58.62% 0.169 -0.1669)
OKLCHoklch(58.62% 0.238 315.4)
XYZxyz(31.7146, 17.1510, 67.2721)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AD9 #64D93A
analogous
#603AD9 #AF3AD9 #D93AB4
triadic
#AF3AD9 #D9AF3A #3AD9AF
tetradic
#AF3AD9 #D9603A #64D93A #3AB4D9
square
#AF3AD9 #D9603A #64D93A #3AB4D9
split-complementary
#AF3AD9 #B4D93A #3AD960
monochromatic
#651980 #8D23B3 #AF3AD9 #C46DE3 #D9A1ED

Accessibility & contrast

On white

4.74
#AF3AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF3AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AD9
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AD9#FFFFFF#000000##FFFFFF
##AF3AD91.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#3576D6
Tritanopia (blue-blind)
#AC5C87
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af3ad9;
/* rgb */ color: rgb(175, 58, 217);
/* oklch */ color: oklch(58.6% 0.238 315.4);
Tailwind
colors: {
  custom: {
    50: '#cb7be6',
    500: '#af3ad9',
    950: '#000000',
  },
}
SCSS
$custom: #af3ad9;
$custom-light: #cb7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ad9",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 217
  },
  "hsl": {
    "h": 284.151,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58624,
    "c": 0.23754,
    "h": 315.4
  },
  "luminance": 0.1715
}

Semantic roles & 50–950 ramp

primary
#AF3AD9
secondary
#A7D995
accent
#EB3D6B
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF3AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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