#AF339E#AF339E

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

Color values

HEX#AF339E
RGBrgb(175, 51, 158)
HSLhsl(308, 55%, 44%)
HSVhsv(308, 71%, 69%)
CMYKcmyk(0%, 70.9%, 9.7%, 31.4%)
CIE-LABlab(44.16, 61.18, -31.58)
CIE-LCHlch(44.16, 68.85, 332.70°)
OKLaboklab(54.47% 0.1774 -0.0864)
OKLCHoklch(54.47% 0.197 334)
XYZxyz(25.0348, 13.9523, 33.7157)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339E #33AF44
analogous
#8233AF #AF339E #AF3360
triadic
#AF339E #9EAF33 #339EAF
tetradic
#AF339E #AF8233 #33AF44 #3360AF
square
#AF339E #AF8233 #33AF44 #3360AF
split-complementary
#AF339E #60AF33 #33AF82
monochromatic
#501748 #802573 #AF339E #CD52BC #DB82CE

Accessibility & contrast

On white

5.54
#AF339E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF339E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF339E
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339E#FFFFFF#000000##FFFFFF
##AF339E1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA1
Deuteranopia (green-blind)
#5C6F9B
Tritanopia (blue-blind)
#B73E65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af339e;
/* rgb */ color: rgb(175, 51, 158);
/* oklch */ color: oklch(54.5% 0.197 334.0);
Tailwind
colors: {
  custom: {
    50: '#ca76bb',
    500: '#af339e',
    950: '#000000',
  },
}
SCSS
$custom: #af339e;
$custom-light: #ca76bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af339e",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 308.226,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54465,
    "c": 0.19733,
    "h": 334
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF339E

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

Preview Lab → · Contrast checker → · Palette generator →

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