#AF319D#AF319D

#AF319D is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.2% C 0.199 H 334.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF319D
RGBrgb(175, 49, 157)
HSLhsl(309, 56%, 44%)
HSVhsv(309, 72%, 69%)
CMYKcmyk(0%, 72%, 10.3%, 31.4%)
CIE-LABlab(43.87, 61.72, -31.44)
CIE-LCHlch(43.87, 69.27, 333.01°)
OKLaboklab(54.24% 0.1794 -0.086)
OKLCHoklch(54.24% 0.199 334.4)
XYZxyz(24.8635, 13.7470, 33.2357)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319D #31AF43
analogous
#8231AF #AF319D #AF315E
triadic
#AF319D #9DAF31 #319DAF
tetradic
#AF319D #AF8231 #31AF43 #315EAF
square
#AF319D #AF8231 #31AF43 #315EAF
split-complementary
#AF319D #5EAF31 #31AF82
monochromatic
#4F1647 #7F2472 #AF319D #CE4FBC #DB7FCE

Accessibility & contrast

On white

5.60
#AF319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF319D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF319D
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319D#FFFFFF#000000##FFFFFF
##AF319D1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5CA0
Deuteranopia (green-blind)
#5C6E9A
Tritanopia (blue-blind)
#B73C63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af319d;
/* rgb */ color: rgb(175, 49, 157);
/* oklch */ color: oklch(54.2% 0.199 334.4);
Tailwind
colors: {
  custom: {
    50: '#ca75ba',
    500: '#af319d',
    950: '#000000',
  },
}
SCSS
$custom: #af319d;
$custom-light: #ca75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af319d",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 308.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.19893,
    "h": 334.4
  },
  "luminance": 0.13745
}

Semantic roles & 50–950 ramp

primary
#AF319D
secondary
#78C483
accent
#E05E48
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF319D

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

Preview Lab → · Contrast checker → · Palette generator →

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