#AF319B#AF319B

#AF319B is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.1% C 0.197 H 335.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF319B
RGBrgb(175, 49, 155)
HSLhsl(310, 56%, 44%)
HSVhsv(310, 72%, 69%)
CMYKcmyk(0%, 72%, 11.4%, 31.4%)
CIE-LABlab(43.77, 61.42, -30.40)
CIE-LCHlch(43.77, 68.53, 333.67°)
OKLaboklab(54.13% 0.1792 -0.083)
OKLCHoklch(54.13% 0.197 335.2)
XYZxyz(24.6942, 13.6793, 32.3438)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319B #31AF45
analogous
#8431AF #AF319B #AF315C
triadic
#AF319B #9BAF31 #319BAF
tetradic
#AF319B #AF8431 #31AF45 #315CAF
square
#AF319B #AF8431 #31AF45 #315CAF
split-complementary
#AF319B #5CAF31 #31AF84
monochromatic
#4F1646 #7F2471 #AF319B #CE4FBA #DB7FCD

Accessibility & contrast

On white

5.62
#AF319B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF319B
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319B#FFFFFF#000000##FFFFFF
##AF319B1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315B9E
Deuteranopia (green-blind)
#5D6E98
Tritanopia (blue-blind)
#B83B62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af319b;
/* rgb */ color: rgb(175, 49, 155);
/* oklch */ color: oklch(54.1% 0.197 335.2);
Tailwind
colors: {
  custom: {
    50: '#ca75b9',
    500: '#af319b',
    950: '#000000',
  },
}
SCSS
$custom: #af319b;
$custom-light: #ca75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af319b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 309.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.19749,
    "h": 335.2
  },
  "luminance": 0.13677
}

Semantic roles & 50–950 ramp

primary
#AF319B
secondary
#78C484
accent
#E06048
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF319B

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

Preview Lab → · Contrast checker → · Palette generator →

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