#AF3FAC#AF3FAC

#AF3FAC is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.4% C 0.193 H 328.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF3FAC
RGBrgb(175, 63, 172)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 69%)
CMYKcmyk(0%, 64%, 1.7%, 31.4%)
CIE-LABlab(46.51, 58.84, -36.20)
CIE-LCHlch(46.51, 69.09, 328.40°)
OKLaboklab(56.39% 0.1652 -0.0998)
OKLCHoklch(56.39% 0.193 328.9)
XYZxyz(26.9028, 15.6494, 40.6254)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FAC #3FAF42
analogous
#7A3FAF #AF3FAC #AF3F74
triadic
#AF3FAC #ACAF3F #3FACAF
tetradic
#AF3FAC #AF7A3F #3FAF42 #3F74AF
square
#AF3FAC #AF7A3F #3FAF42 #3F74AF
split-complementary
#AF3FAC #74AF3F #3FAF7A
monochromatic
#551F54 #822F80 #AF3FAC #C764C5 #D791D6

Accessibility & contrast

On white

5.09
#AF3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AF3FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FAC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FAC#FFFFFF#000000##FFFFFF
##AF3FAC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365AF
Deuteranopia (green-blind)
#5C74A9
Tritanopia (blue-blind)
#B54D70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3fac;
/* rgb */ color: rgb(175, 63, 172);
/* oklch */ color: oklch(56.4% 0.193 328.9);
Tailwind
colors: {
  custom: {
    50: '#ca7cc5',
    500: '#af3fac',
    950: '#000000',
  },
}
SCSS
$custom: #af3fac;
$custom-light: #ca7cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fac",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 301.607,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56392,
    "c": 0.19302,
    "h": 328.9
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#AF3FAC
secondary
#87C389
accent
#D75551
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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