#AF339F#AF339F

#AF339F is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.5% C 0.198 H 333.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF339F
RGBrgb(175, 51, 159)
HSLhsl(308, 55%, 44%)
HSVhsv(308, 71%, 69%)
CMYKcmyk(0%, 70.9%, 9.1%, 31.4%)
CIE-LABlab(44.21, 61.33, -32.10)
CIE-LCHlch(44.21, 69.22, 332.38°)
OKLaboklab(54.52% 0.1775 -0.0879)
OKLCHoklch(54.52% 0.198 333.7)
XYZxyz(25.1212, 13.9869, 34.1708)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339F #33AF43
analogous
#8133AF #AF339F #AF3361
triadic
#AF339F #9FAF33 #339FAF
tetradic
#AF339F #AF8133 #33AF43 #3361AF
square
#AF339F #AF8133 #33AF43 #3361AF
split-complementary
#AF339F #61AF33 #33AF81
monochromatic
#501749 #802574 #AF339F #CD52BD #DB82CF

Accessibility & contrast

On white

5.53
#AF339F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF339F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF339F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339F#FFFFFF#000000##FFFFFF
##AF339F1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#5C6F9C
Tritanopia (blue-blind)
#B73E65
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af339f;
/* rgb */ color: rgb(175, 51, 159);
/* oklch */ color: oklch(54.5% 0.198 333.7);
Tailwind
colors: {
  custom: {
    50: '#ca76bc',
    500: '#af339f',
    950: '#000000',
  },
}
SCSS
$custom: #af339f;
$custom-light: #ca76bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af339f",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 307.742,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54517,
    "c": 0.19808,
    "h": 333.7
  },
  "luminance": 0.13985
}

Semantic roles & 50–950 ramp

primary
#AF339F
secondary
#7AC484
accent
#DE5D4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF339F

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

Preview Lab → · Contrast checker → · Palette generator →

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