#AF31AE#AF31AE

#AF31AE is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.212 H 328.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF31AE
RGBrgb(175, 49, 174)
HSLhsl(300, 56%, 44%)
HSVhsv(300, 72%, 69%)
CMYKcmyk(0%, 72%, 0.6%, 31.4%)
CIE-LABlab(44.76, 64.42, -40.16)
CIE-LCHlch(44.76, 75.91, 328.06°)
OKLaboklab(55.16% 0.1802 -0.1112)
OKLCHoklch(55.16% 0.212 328.3)
XYZxyz(26.4172, 14.3685, 41.4182)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF31AE #31AF32
analogous
#7131AF #AF31AE #AF316F
triadic
#AF31AE #AEAF31 #31AEAF
tetradic
#AF31AE #AF7131 #31AF32 #316FAF
square
#AF31AE #AF7131 #31AF32 #316FAF
split-complementary
#AF31AE #6FAF31 #31AF71
monochromatic
#4F164F #7F247E #AF31AE #CE4FCD #DB7FDA

Accessibility & contrast

On white

5.42
#AF31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF31AE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF31AE#FFFFFF#000000##FFFFFF
##AF31AE1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5FB1
Deuteranopia (green-blind)
#5370AB
Tritanopia (blue-blind)
#B5446D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af31ae;
/* rgb */ color: rgb(175, 49, 174);
/* oklch */ color: oklch(55.2% 0.212 328.3);
Tailwind
colors: {
  custom: {
    50: '#cb76c6',
    500: '#af31ae',
    950: '#000000',
  },
}
SCSS
$custom: #af31ae;
$custom-light: #cb76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af31ae",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 300.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55162,
    "c": 0.21171,
    "h": 328.3
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#AF31AE
secondary
#78C478
accent
#E04948
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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