#AF319C#AF319C

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

Color values

HEX#AF319C
RGBrgb(175, 49, 156)
HSLhsl(309, 56%, 44%)
HSVhsv(309, 72%, 69%)
CMYKcmyk(0%, 72%, 10.9%, 31.4%)
CIE-LABlab(43.82, 61.57, -30.92)
CIE-LCHlch(43.82, 68.90, 333.34°)
OKLaboklab(54.18% 0.1793 -0.0845)
OKLCHoklch(54.18% 0.198 334.8)
XYZxyz(24.7785, 13.7130, 32.7879)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319C #31AF44
analogous
#8331AF #AF319C #AF315D
triadic
#AF319C #9CAF31 #319CAF
tetradic
#AF319C #AF8331 #31AF44 #315DAF
square
#AF319C #AF8331 #31AF44 #315DAF
split-complementary
#AF319C #5DAF31 #31AF83
monochromatic
#4F1647 #7F2471 #AF319C #CE4FBB #DB7FCD

Accessibility & contrast

On white

5.61
#AF319C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF319C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF319C
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319C#FFFFFF#000000##FFFFFF
##AF319C1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305C9F
Deuteranopia (green-blind)
#5C6E99
Tritanopia (blue-blind)
#B83B63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af319c;
/* rgb */ color: rgb(175, 49, 156);
/* oklch */ color: oklch(54.2% 0.198 334.8);
Tailwind
colors: {
  custom: {
    50: '#ca75b9',
    500: '#af319c',
    950: '#000000',
  },
}
SCSS
$custom: #af319c;
$custom-light: #ca75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af319c",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 309.048,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.19822,
    "h": 334.8
  },
  "luminance": 0.13711
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF319C

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

Preview Lab → · Contrast checker → · Palette generator →

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