#AF3FA5#AF3FA5

#AF3FA5 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.187 H 331.5°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA5
RGBrgb(175, 63, 165)
HSLhsl(305, 47%, 47%)
HSVhsv(305, 64%, 69%)
CMYKcmyk(0%, 64%, 5.7%, 31.4%)
CIE-LABlab(46.16, 57.67, -32.62)
CIE-LCHlch(46.16, 66.26, 330.51°)
OKLaboklab(56.02% 0.1646 -0.0895)
OKLCHoklch(56.02% 0.187 331.5)
XYZxyz(26.2482, 15.3875, 37.1776)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA5 #3FAF49
analogous
#813FAF #AF3FA5 #AF3F6D
triadic
#AF3FA5 #A5AF3F #3FA5AF
tetradic
#AF3FA5 #AF813F #3FAF49 #3F6DAF
square
#AF3FA5 #AF813F #3FAF49 #3F6DAF
split-complementary
#AF3FA5 #6DAF3F #3FAF81
monochromatic
#551F50 #822F7B #AF3FA5 #C764BE #D791D1

Accessibility & contrast

On white

5.15
#AF3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF3FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA5#FFFFFF#000000##FFFFFF
##AF3FA51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A8
Deuteranopia (green-blind)
#5F73A2
Tritanopia (blue-blind)
#B64A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3fa5;
/* rgb */ color: rgb(175, 63, 165);
/* oklch */ color: oklch(56.0% 0.187 331.5);
Tailwind
colors: {
  custom: {
    50: '#ca7cc0',
    500: '#af3fa5',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa5;
$custom-light: #ca7cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa5",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 305.357,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56024,
    "c": 0.18736,
    "h": 331.5
  },
  "luminance": 0.15386
}

Semantic roles & 50–950 ramp

primary
#AF3FA5
secondary
#87C38D
accent
#D75D51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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