#AF3A9D#AF3A9D

#AF3A9D is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.188 H 334.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF3A9D
RGBrgb(175, 58, 157)
HSLhsl(309, 50%, 46%)
HSVhsv(309, 67%, 69%)
CMYKcmyk(0%, 66.9%, 10.3%, 31.4%)
CIE-LABlab(45.05, 58.40, -29.59)
CIE-LCHlch(45.05, 65.47, 333.13°)
OKLaboklab(55.09% 0.1696 -0.0808)
OKLCHoklch(55.09% 0.188 334.5)
XYZxyz(25.2783, 14.5765, 33.3739)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A9D #3AAF4C
analogous
#863AAF #AF3A9D #AF3A62
triadic
#AF3A9D #9DAF3A #3A9DAF
tetradic
#AF3A9D #AF863A #3AAF4C #3A62AF
square
#AF3A9D #AF863A #3AAF4C #3A62AF
split-complementary
#AF3A9D #62AF3A #3AAF86
monochromatic
#531C4B #812B74 #AF3A9D #C95DB9 #D98BCD

Accessibility & contrast

On white

5.36
#AF3A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF3A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3A9D
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3A9D#FFFFFF#000000##FFFFFF
##AF3A9D1.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A0
Deuteranopia (green-blind)
#60719A
Tritanopia (blue-blind)
#B74366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3a9d;
/* rgb */ color: rgb(175, 58, 157);
/* oklch */ color: oklch(55.1% 0.188 334.5);
Tailwind
colors: {
  custom: {
    50: '#ca79ba',
    500: '#af3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #af3a9d;
$custom-light: #ca79ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a9d",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 309.231,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5509,
    "c": 0.18787,
    "h": 334.5
  },
  "luminance": 0.14574
}

Semantic roles & 50–950 ramp

primary
#AF3A9D
secondary
#82C38C
accent
#DA644E
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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