#AF339B#AF339B

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

Color values

HEX#AF339B
RGBrgb(175, 51, 155)
HSLhsl(310, 55%, 44%)
HSVhsv(310, 71%, 69%)
CMYKcmyk(0%, 70.9%, 11.4%, 31.4%)
CIE-LABlab(44.02, 60.72, -30.01)
CIE-LCHlch(44.02, 67.73, 333.70°)
OKLaboklab(54.31% 0.1771 -0.0819)
OKLCHoklch(54.31% 0.195 335.2)
XYZxyz(24.7797, 13.8503, 32.3723)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339B #33AF47
analogous
#8533AF #AF339B #AF335D
triadic
#AF339B #9BAF33 #339BAF
tetradic
#AF339B #AF8533 #33AF47 #335DAF
square
#AF339B #AF8533 #33AF47 #335DAF
split-complementary
#AF339B #5DAF33 #33AF85
monochromatic
#501747 #802571 #AF339B #CD52B9 #DB82CC

Accessibility & contrast

On white

5.57
#AF339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF339B
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339B#FFFFFF#000000##FFFFFF
##AF339B1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335C9E
Deuteranopia (green-blind)
#5E6F98
Tritanopia (blue-blind)
#B83C63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af339b;
/* rgb */ color: rgb(175, 51, 155);
/* oklch */ color: oklch(54.3% 0.195 335.2);
Tailwind
colors: {
  custom: {
    50: '#ca76b9',
    500: '#af339b',
    950: '#000000',
  },
}
SCSS
$custom: #af339b;
$custom-light: #ca76b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af339b",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 309.677,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.19516,
    "h": 335.2
  },
  "luminance": 0.13848
}

Semantic roles & 50–950 ramp

primary
#AF339B
secondary
#7AC486
accent
#DE624A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF339B

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

Preview Lab → · Contrast checker → · Palette generator →

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