#AF31AF#AF31AF

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

Color values

HEX#AF31AF
RGBrgb(175, 49, 175)
HSLhsl(300, 56%, 44%)
HSVhsv(300, 72%, 69%)
CMYKcmyk(0%, 72%, 0%, 31.4%)
CIE-LABlab(44.81, 64.58, -40.66)
CIE-LCHlch(44.81, 76.32, 327.80°)
OKLaboklab(55.22% 0.1802 -0.1126)
OKLCHoklch(55.22% 0.212 328)
XYZxyz(26.5150, 14.4076, 41.9335)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF31AF #31AF31
analogous
#7031AF #AF31AF #AF3170
triadic
#AF31AF #AFAF31 #31AFAF
tetradic
#AF31AF #AF7031 #31AF31 #3170AF
square
#AF31AF #AF7031 #31AF31 #3170AF
split-complementary
#AF31AF #70AF31 #31AF70
monochromatic
#4F164F #7F247F #AF31AF #CE4FCE #DB7FDB

Accessibility & contrast

On white

5.41
#AF31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF31AF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF31AF#FFFFFF#000000##FFFFFF
##AF31AF1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1960B2
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#B4446D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af31af;
/* rgb */ color: rgb(175, 49, 175);
/* oklch */ color: oklch(55.2% 0.212 328.0);
Tailwind
colors: {
  custom: {
    50: '#cb76c7',
    500: '#af31af',
    950: '#000000',
  },
}
SCSS
$custom: #af31af;
$custom-light: #cb76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af31af",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5522,
    "c": 0.21248,
    "h": 328
  },
  "luminance": 0.14406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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