#AF319E#AF319E

#AF319E is a mid, vivid purple. Relative luminance 0.138; OKLCH L 54.3% C 0.200 H 334.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF319E
RGBrgb(175, 49, 158)
HSLhsl(308, 56%, 44%)
HSVhsv(308, 72%, 69%)
CMYKcmyk(0%, 72%, 9.7%, 31.4%)
CIE-LABlab(43.92, 61.88, -31.96)
CIE-LCHlch(43.92, 69.64, 332.68°)
OKLaboklab(54.29% 0.1795 -0.0875)
OKLCHoklch(54.29% 0.2 334)
XYZxyz(24.9493, 13.7813, 33.6872)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319E #31AF42
analogous
#8131AF #AF319E #AF315F
triadic
#AF319E #9EAF31 #319EAF
tetradic
#AF319E #AF8131 #31AF42 #315FAF
square
#AF319E #AF8131 #31AF42 #315FAF
split-complementary
#AF319E #5FAF31 #31AF81
monochromatic
#4F1648 #7F2473 #AF319E #CE4FBD #DB7FCF

Accessibility & contrast

On white

5.59
#AF319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF319E
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319E#FFFFFF#000000##FFFFFF
##AF319E1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA1
Deuteranopia (green-blind)
#5C6E9B
Tritanopia (blue-blind)
#B73C64
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af319e;
/* rgb */ color: rgb(175, 49, 158);
/* oklch */ color: oklch(54.3% 0.200 334.0);
Tailwind
colors: {
  custom: {
    50: '#ca75bb',
    500: '#af319e',
    950: '#000000',
  },
}
SCSS
$custom: #af319e;
$custom-light: #ca75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af319e",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 308.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54287,
    "c": 0.19967,
    "h": 334
  },
  "luminance": 0.13779
}

Semantic roles & 50–950 ramp

primary
#AF319E
secondary
#78C482
accent
#E05D48
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF319E

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

Preview Lab → · Contrast checker → · Palette generator →

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