#AF3FA7#AF3FA7

#AF3FA7 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.1% C 0.189 H 330.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA7
RGBrgb(175, 63, 167)
HSLhsl(304, 47%, 47%)
HSVhsv(304, 64%, 69%)
CMYKcmyk(0%, 64%, 4.6%, 31.4%)
CIE-LABlab(46.26, 58.00, -33.65)
CIE-LCHlch(46.26, 67.05, 329.88°)
OKLaboklab(56.13% 0.1648 -0.0924)
OKLCHoklch(56.13% 0.189 330.7)
XYZxyz(26.4316, 15.4609, 38.1438)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA7 #3FAF47
analogous
#7F3FAF #AF3FA7 #AF3F6F
triadic
#AF3FA7 #A7AF3F #3FA7AF
tetradic
#AF3FA7 #AF7F3F #3FAF47 #3F6FAF
square
#AF3FA7 #AF7F3F #3FAF47 #3F6FAF
split-complementary
#AF3FA7 #6FAF3F #3FAF7F
monochromatic
#551F51 #822F7C #AF3FA7 #C764C0 #D791D2

Accessibility & contrast

On white

5.13
#AF3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF3FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA7#FFFFFF#000000##FFFFFF
##AF3FA71.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3764AA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#B64B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3fa7;
/* rgb */ color: rgb(175, 63, 167);
/* oklch */ color: oklch(56.1% 0.189 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cc1',
    500: '#af3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa7;
$custom-light: #ca7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa7",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 304.286,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56128,
    "c": 0.18896,
    "h": 330.7
  },
  "luminance": 0.15459
}

Semantic roles & 50–950 ramp

primary
#AF3FA7
secondary
#87C38B
accent
#D75B51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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