#AF339C#AF339C

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

Color values

HEX#AF339C
RGBrgb(175, 51, 156)
HSLhsl(309, 55%, 44%)
HSVhsv(309, 71%, 69%)
CMYKcmyk(0%, 70.9%, 10.9%, 31.4%)
CIE-LABlab(44.07, 60.87, -30.53)
CIE-LCHlch(44.07, 68.10, 333.36°)
OKLaboklab(54.36% 0.1772 -0.0834)
OKLCHoklch(54.36% 0.196 334.8)
XYZxyz(24.8640, 13.8840, 32.8164)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF339C #33AF46
analogous
#8433AF #AF339C #AF335E
triadic
#AF339C #9CAF33 #339CAF
tetradic
#AF339C #AF8433 #33AF46 #335EAF
square
#AF339C #AF8433 #33AF46 #335EAF
split-complementary
#AF339C #5EAF33 #33AF84
monochromatic
#501748 #802572 #AF339C #CD52BA #DB82CD

Accessibility & contrast

On white

5.56
#AF339C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF339C
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF339C#FFFFFF#000000##FFFFFF
##AF339C1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325C9F
Deuteranopia (green-blind)
#5D6F99
Tritanopia (blue-blind)
#B73D63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af339c;
/* rgb */ color: rgb(175, 51, 156);
/* oklch */ color: oklch(54.4% 0.196 334.8);
Tailwind
colors: {
  custom: {
    50: '#ca76b9',
    500: '#af339c',
    950: '#000000',
  },
}
SCSS
$custom: #af339c;
$custom-light: #ca76b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af339c",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 309.194,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54362,
    "c": 0.19588,
    "h": 334.8
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF339C

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

Preview Lab → · Contrast checker → · Palette generator →

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