#AF3BA6#AF3BA6

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

Color values

HEX#AF3BA6
RGBrgb(175, 59, 166)
HSLhsl(305, 50%, 46%)
HSVhsv(305, 66%, 69%)
CMYKcmyk(0%, 66.3%, 5.1%, 31.4%)
CIE-LABlab(45.63, 59.45, -34.04)
CIE-LCHlch(45.63, 68.51, 330.20°)
OKLaboklab(55.66% 0.1694 -0.0935)
OKLCHoklch(55.66% 0.193 331.1)
XYZxyz(26.1260, 14.9970, 37.5877)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BA6 #3BAF44
analogous
#7E3BAF #AF3BA6 #AF3B6C
triadic
#AF3BA6 #A6AF3B #3BA6AF
tetradic
#AF3BA6 #AF7E3B #3BAF44 #3B6CAF
square
#AF3BA6 #AF7E3B #3BAF44 #3B6CAF
split-complementary
#AF3BA6 #6CAF3B #3BAF7E
monochromatic
#531C4F #812C7B #AF3BA6 #C95EC1 #D88CD2

Accessibility & contrast

On white

5.25
#AF3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AF3BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3BA6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BA6#FFFFFF#000000##FFFFFF
##AF3BA61.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362A9
Deuteranopia (green-blind)
#5C72A3
Tritanopia (blue-blind)
#B6476B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ba6;
/* rgb */ color: rgb(175, 59, 166);
/* oklch */ color: oklch(55.7% 0.193 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ac1',
    500: '#af3ba6',
    950: '#000000',
  },
}
SCSS
$custom: #af3ba6;
$custom-light: #ca7ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ba6",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 304.655,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55655,
    "c": 0.19348,
    "h": 331.1
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#AF3BA6
secondary
#83C388
accent
#D9594F
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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