#AF319F#AF319F

#AF319F is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.200 H 333.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF319F
RGBrgb(175, 49, 159)
HSLhsl(308, 56%, 44%)
HSVhsv(308, 72%, 69%)
CMYKcmyk(0%, 72%, 9.1%, 31.4%)
CIE-LABlab(43.97, 62.03, -32.48)
CIE-LCHlch(43.97, 70.02, 332.36°)
OKLaboklab(54.34% 0.1795 -0.089)
OKLCHoklch(54.34% 0.2 333.6)
XYZxyz(25.0357, 13.8159, 34.1423)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319F #31AF41
analogous
#8031AF #AF319F #AF3160
triadic
#AF319F #9FAF31 #319FAF
tetradic
#AF319F #AF8031 #31AF41 #3160AF
square
#AF319F #AF8031 #31AF41 #3160AF
split-complementary
#AF319F #60AF31 #31AF80
monochromatic
#4F1648 #7F2474 #AF319F #CE4FBE #DB7FD0

Accessibility & contrast

On white

5.58
#AF319F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF319F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF319F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319F#FFFFFF#000000##FFFFFF
##AF319F1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5CA2
Deuteranopia (green-blind)
#5B6E9C
Tritanopia (blue-blind)
#B73D64
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af319f;
/* rgb */ color: rgb(175, 49, 159);
/* oklch */ color: oklch(54.3% 0.200 333.6);
Tailwind
colors: {
  custom: {
    50: '#ca75bc',
    500: '#af319f',
    950: '#000000',
  },
}
SCSS
$custom: #af319f;
$custom-light: #ca75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af319f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 307.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5434,
    "c": 0.20039,
    "h": 333.6
  },
  "luminance": 0.13814
}

Semantic roles & 50–950 ramp

primary
#AF319F
secondary
#78C481
accent
#E05B48
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF319F

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

Preview Lab → · Contrast checker → · Palette generator →

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