#AF3BA5#AF3BA5

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

Color values

HEX#AF3BA5
RGBrgb(175, 59, 165)
HSLhsl(305, 50%, 46%)
HSVhsv(305, 66%, 69%)
CMYKcmyk(0%, 66.3%, 5.7%, 31.4%)
CIE-LABlab(45.58, 59.29, -33.53)
CIE-LCHlch(45.58, 68.11, 330.51°)
OKLaboklab(55.6% 0.1693 -0.0921)
OKLCHoklch(55.6% 0.193 331.5)
XYZxyz(26.0347, 14.9605, 37.1065)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BA5 #3BAF45
analogous
#7F3BAF #AF3BA5 #AF3B6B
triadic
#AF3BA5 #A5AF3B #3BA5AF
tetradic
#AF3BA5 #AF7F3B #3BAF45 #3B6BAF
square
#AF3BA5 #AF7F3B #3BAF45 #3B6BAF
split-complementary
#AF3BA5 #6BAF3B #3BAF7F
monochromatic
#531C4F #812C7A #AF3BA5 #C95EC0 #D88CD2

Accessibility & contrast

On white

5.26
#AF3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF3BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3BA5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BA5#FFFFFF#000000##FFFFFF
##AF3BA51.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A8
Deuteranopia (green-blind)
#5D72A2
Tritanopia (blue-blind)
#B6476B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ba5;
/* rgb */ color: rgb(175, 59, 165);
/* oklch */ color: oklch(55.6% 0.193 331.5);
Tailwind
colors: {
  custom: {
    50: '#ca7ac0',
    500: '#af3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #af3ba5;
$custom-light: #ca7ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ba5",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 305.172,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55603,
    "c": 0.1927,
    "h": 331.5
  },
  "luminance": 0.14959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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