#AF3FA6#AF3FA6

#AF3FA6 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.188 H 331.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA6
RGBrgb(175, 63, 166)
HSLhsl(305, 47%, 47%)
HSVhsv(305, 64%, 69%)
CMYKcmyk(0%, 64%, 5.1%, 31.4%)
CIE-LABlab(46.21, 57.84, -33.13)
CIE-LCHlch(46.21, 66.65, 330.19°)
OKLaboklab(56.08% 0.1647 -0.091)
OKLCHoklch(56.08% 0.188 331.1)
XYZxyz(26.3396, 15.4241, 37.6589)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA6 #3FAF48
analogous
#803FAF #AF3FA6 #AF3F6E
triadic
#AF3FA6 #A6AF3F #3FA6AF
tetradic
#AF3FA6 #AF803F #3FAF48 #3F6EAF
square
#AF3FA6 #AF803F #3FAF48 #3F6EAF
split-complementary
#AF3FA6 #6EAF3F #3FAF80
monochromatic
#551F51 #822F7B #AF3FA6 #C764BF #D791D2

Accessibility & contrast

On white

5.14
#AF3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF3FA6
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA6#FFFFFF#000000##FFFFFF
##AF3FA61.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A9
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#B64A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3fa6;
/* rgb */ color: rgb(175, 63, 166);
/* oklch */ color: oklch(56.1% 0.188 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca7cc1',
    500: '#af3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa6;
$custom-light: #ca7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa6",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 304.821,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.18816,
    "h": 331.1
  },
  "luminance": 0.15422
}

Semantic roles & 50–950 ramp

primary
#AF3FA6
secondary
#87C38C
accent
#D75C51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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