#AF3FA8#AF3FA8

#AF3FA8 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.190 H 330.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA8
RGBrgb(175, 63, 168)
HSLhsl(304, 47%, 47%)
HSVhsv(304, 64%, 69%)
CMYKcmyk(0%, 64%, 4%, 31.4%)
CIE-LABlab(46.31, 58.17, -34.16)
CIE-LCHlch(46.31, 67.46, 329.58°)
OKLaboklab(56.18% 0.1649 -0.0939)
OKLCHoklch(56.18% 0.19 330.3)
XYZxyz(26.5244, 15.4980, 38.6326)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA8 #3FAF46
analogous
#7E3FAF #AF3FA8 #AF3F70
triadic
#AF3FA8 #A8AF3F #3FA8AF
tetradic
#AF3FA8 #AF7E3F #3FAF46 #3F70AF
square
#AF3FA8 #AF7E3F #3FAF46 #3F70AF
split-complementary
#AF3FA8 #70AF3F #3FAF7E
monochromatic
#551F52 #822F7D #AF3FA8 #C764C1 #D791D3

Accessibility & contrast

On white

5.12
#AF3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF3FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA8#FFFFFF#000000##FFFFFF
##AF3FA81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#B54B6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3fa8;
/* rgb */ color: rgb(175, 63, 168);
/* oklch */ color: oklch(56.2% 0.190 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cc2',
    500: '#af3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa8;
$custom-light: #ca7cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa8",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 303.75,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.18976,
    "h": 330.3
  },
  "luminance": 0.15496
}

Semantic roles & 50–950 ramp

primary
#AF3FA8
secondary
#87C38B
accent
#D75951
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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