#AF3BA7#AF3BA7

#AF3BA7 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.194 H 330.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF3BA7
RGBrgb(175, 59, 167)
HSLhsl(304, 50%, 46%)
HSVhsv(304, 66%, 69%)
CMYKcmyk(0%, 66.3%, 4.6%, 31.4%)
CIE-LABlab(45.68, 59.62, -34.56)
CIE-LCHlch(45.68, 68.91, 329.90°)
OKLaboklab(55.71% 0.1694 -0.095)
OKLCHoklch(55.71% 0.194 330.7)
XYZxyz(26.2181, 15.0339, 38.0727)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BA7 #3BAF43
analogous
#7D3BAF #AF3BA7 #AF3B6D
triadic
#AF3BA7 #A7AF3B #3BA7AF
tetradic
#AF3BA7 #AF7D3B #3BAF43 #3B6DAF
square
#AF3BA7 #AF7D3B #3BAF43 #3B6DAF
split-complementary
#AF3BA7 #6DAF3B #3BAF7D
monochromatic
#531C50 #812C7B #AF3BA7 #C95EC1 #D88CD3

Accessibility & contrast

On white

5.24
#AF3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF3BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3BA7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BA7#FFFFFF#000000##FFFFFF
##AF3BA71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af3ba7;
/* rgb */ color: rgb(175, 59, 167);
/* oklch */ color: oklch(55.7% 0.194 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ac1',
    500: '#af3ba7',
    950: '#000000',
  },
}
SCSS
$custom: #af3ba7;
$custom-light: #ca7ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ba7",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 304.138,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55708,
    "c": 0.19427,
    "h": 330.7
  },
  "luminance": 0.15032
}

Semantic roles & 50–950 ramp

primary
#AF3BA7
secondary
#83C387
accent
#D9584F
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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