#AF3CA7#AF3CA7

#AF3CA7 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.193 H 330.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF3CA7
RGBrgb(175, 60, 167)
HSLhsl(304, 49%, 46%)
HSVhsv(304, 66%, 69%)
CMYKcmyk(0%, 65.7%, 4.6%, 31.4%)
CIE-LABlab(45.82, 59.22, -34.33)
CIE-LCHlch(45.82, 68.45, 329.90°)
OKLaboklab(55.81% 0.1683 -0.0944)
OKLCHoklch(55.81% 0.193 330.7)
XYZxyz(26.2700, 15.1376, 38.0900)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CA7 #3CAF44
analogous
#7D3CAF #AF3CA7 #AF3C6D
triadic
#AF3CA7 #A7AF3C #3CA7AF
tetradic
#AF3CA7 #AF7D3C #3CAF44 #3C6DAF
square
#AF3CA7 #AF7D3C #3CAF44 #3C6DAF
split-complementary
#AF3CA7 #6DAF3C #3CAF7D
monochromatic
#541D50 #812C7C #AF3CA7 #C860C1 #D88DD3

Accessibility & contrast

On white

5.21
#AF3CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF3CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CA7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CA7#FFFFFF#000000##FFFFFF
##AF3CA71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#5D72A4
Tritanopia (blue-blind)
#B6486C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ca7;
/* rgb */ color: rgb(175, 60, 167);
/* oklch */ color: oklch(55.8% 0.193 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7bc1',
    500: '#af3ca7',
    950: '#000000',
  },
}
SCSS
$custom: #af3ca7;
$custom-light: #ca7bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ca7",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 304.174,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55811,
    "c": 0.19297,
    "h": 330.7
  },
  "luminance": 0.15136
}

Semantic roles & 50–950 ramp

primary
#AF3CA7
secondary
#84C388
accent
#D8594F
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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