#AF31AA#AF31AA

#AF31AA is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.209 H 329.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF31AA
RGBrgb(175, 49, 170)
HSLhsl(302, 56%, 44%)
HSVhsv(302, 72%, 69%)
CMYKcmyk(0%, 72%, 2.9%, 31.4%)
CIE-LABlab(44.54, 63.77, -38.14)
CIE-LCHlch(44.54, 74.30, 329.12°)
OKLaboklab(54.94% 0.1801 -0.1053)
OKLCHoklch(54.94% 0.209 329.7)
XYZxyz(26.0330, 14.2148, 39.3950)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF31AA #31AF36
analogous
#7531AF #AF31AA #AF316B
triadic
#AF31AA #AAAF31 #31AAAF
tetradic
#AF31AA #AF7531 #31AF36 #316BAF
square
#AF31AA #AF7531 #31AF36 #316BAF
split-complementary
#AF31AA #6BAF31 #31AF75
monochromatic
#4F164D #7F247C #AF31AA #CE4FC9 #DB7FD8

Accessibility & contrast

On white

5.47
#AF31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF31AA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF31AA#FFFFFF#000000##FFFFFF
##AF31AA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAD
Deuteranopia (green-blind)
#566FA7
Tritanopia (blue-blind)
#B5426A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af31aa;
/* rgb */ color: rgb(175, 49, 170);
/* oklch */ color: oklch(54.9% 0.209 329.7);
Tailwind
colors: {
  custom: {
    50: '#cb76c4',
    500: '#af31aa',
    950: '#000000',
  },
}
SCSS
$custom: #af31aa;
$custom-light: #cb76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af31aa",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 302.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54936,
    "c": 0.20862,
    "h": 329.7
  },
  "luminance": 0.14213
}

Semantic roles & 50–950 ramp

primary
#AF31AA
secondary
#78C47B
accent
#E04E48
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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