#AF3DA7#AF3DA7

#AF3DA7 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.192 H 330.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF3DA7
RGBrgb(175, 61, 167)
HSLhsl(304, 48%, 46%)
HSVhsv(304, 65%, 69%)
CMYKcmyk(0%, 65.1%, 4.6%, 31.4%)
CIE-LABlab(45.97, 58.82, -34.11)
CIE-LCHlch(45.97, 67.99, 329.89°)
OKLaboklab(55.92% 0.1672 -0.0938)
OKLCHoklch(55.92% 0.192 330.7)
XYZxyz(26.3229, 15.2434, 38.1076)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3DA7 #3DAF45
analogous
#7E3DAF #AF3DA7 #AF3D6E
triadic
#AF3DA7 #A7AF3D #3DA7AF
tetradic
#AF3DA7 #AF7E3D #3DAF45 #3D6EAF
square
#AF3DA7 #AF7E3D #3DAF45 #3D6EAF
split-complementary
#AF3DA7 #6EAF3D #3DAF7E
monochromatic
#541D50 #822D7C #AF3DA7 #C861C1 #D88FD3

Accessibility & contrast

On white

5.19
#AF3DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF3DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3DA7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3DA7#FFFFFF#000000##FFFFFF
##AF3DA71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#5D72A4
Tritanopia (blue-blind)
#B6496D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3da7;
/* rgb */ color: rgb(175, 61, 167);
/* oklch */ color: oklch(55.9% 0.192 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7bc1',
    500: '#af3da7',
    950: '#000000',
  },
}
SCSS
$custom: #af3da7;
$custom-light: #ca7bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3da7",
  "rgb": {
    "r": 175,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 304.211,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55915,
    "c": 0.19165,
    "h": 330.7
  },
  "luminance": 0.15241
}

Semantic roles & 50–950 ramp

primary
#AF3DA7
secondary
#85C389
accent
#D85950
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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