#AF34AC#AF34AC

#AF34AC is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.207 H 329.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF34AC
RGBrgb(175, 52, 172)
HSLhsl(301, 54%, 45%)
HSVhsv(301, 70%, 69%)
CMYKcmyk(0%, 70.3%, 1.7%, 31.4%)
CIE-LABlab(45.01, 63.06, -38.57)
CIE-LCHlch(45.01, 73.92, 328.55°)
OKLaboklab(55.31% 0.1772 -0.1066)
OKLCHoklch(55.31% 0.207 329)
XYZxyz(26.3533, 14.5504, 40.4422)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34AC #34AF37
analogous
#7434AF #AF34AC #AF346F
triadic
#AF34AC #ACAF34 #34ACAF
tetradic
#AF34AC #AF7434 #34AF37 #346FAF
square
#AF34AC #AF7434 #34AF37 #346FAF
split-complementary
#AF34AC #6FAF34 #34AF74
monochromatic
#51184F #80267E #AF34AC #CC54C9 #DA83D8

Accessibility & contrast

On white

5.37
#AF34AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF34AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34AC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34AC#FFFFFF#000000##FFFFFF
##AF34AC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360AF
Deuteranopia (green-blind)
#5670A9
Tritanopia (blue-blind)
#B5456C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af34ac;
/* rgb */ color: rgb(175, 52, 172);
/* oklch */ color: oklch(55.3% 0.207 329.0);
Tailwind
colors: {
  custom: {
    50: '#ca77c5',
    500: '#af34ac',
    950: '#000000',
  },
}
SCSS
$custom: #af34ac;
$custom-light: #ca77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af34ac",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 301.463,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5531,
    "c": 0.20678,
    "h": 329
  },
  "luminance": 0.14549
}

Semantic roles & 50–950 ramp

primary
#AF34AC
secondary
#7BC47D
accent
#DE4E4A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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