#AF339D#AF339D

#AF339D is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.4% C 0.197 H 334.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF339D
RGBrgb(175, 51, 157)
HSLhsl(309, 55%, 44%)
HSVhsv(309, 71%, 69%)
CMYKcmyk(0%, 70.9%, 10.3%, 31.4%)
CIE-LABlab(44.12, 61.02, -31.05)
CIE-LCHlch(44.12, 68.47, 333.03°)
OKLaboklab(54.41% 0.1773 -0.0849)
OKLCHoklch(54.41% 0.197 334.4)
XYZxyz(24.9491, 13.9181, 33.2642)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339D #33AF45
analogous
#8333AF #AF339D #AF335F
triadic
#AF339D #9DAF33 #339DAF
tetradic
#AF339D #AF8333 #33AF45 #335FAF
square
#AF339D #AF8333 #33AF45 #335FAF
split-complementary
#AF339D #5FAF33 #33AF83
monochromatic
#501748 #802572 #AF339D #CD52BB #DB82CE

Accessibility & contrast

On white

5.55
#AF339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF339D
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339D#FFFFFF#000000##FFFFFF
##AF339D1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA0
Deuteranopia (green-blind)
#5D6F9A
Tritanopia (blue-blind)
#B73D64
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af339d;
/* rgb */ color: rgb(175, 51, 157);
/* oklch */ color: oklch(54.4% 0.197 334.4);
Tailwind
colors: {
  custom: {
    50: '#ca76ba',
    500: '#af339d',
    950: '#000000',
  },
}
SCSS
$custom: #af339d;
$custom-light: #ca76ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af339d",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 308.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54414,
    "c": 0.19661,
    "h": 334.4
  },
  "luminance": 0.13916
}

Semantic roles & 50–950 ramp

primary
#AF339D
secondary
#7AC485
accent
#DE5F4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF339D

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

Preview Lab → · Contrast checker → · Palette generator →

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