#AF34AD#AF34AD

#AF34AD is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.208 H 328.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF34AD
RGBrgb(175, 52, 173)
HSLhsl(301, 54%, 45%)
HSVhsv(301, 70%, 69%)
CMYKcmyk(0%, 70.3%, 1.1%, 31.4%)
CIE-LABlab(45.07, 63.22, -39.08)
CIE-LCHlch(45.07, 74.32, 328.28°)
OKLaboklab(55.37% 0.1772 -0.1081)
OKLCHoklch(55.37% 0.208 328.6)
XYZxyz(26.4497, 14.5890, 40.9499)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34AD #34AF36
analogous
#7434AF #AF34AD #AF346F
triadic
#AF34AD #ADAF34 #34ADAF
tetradic
#AF34AD #AF7434 #34AF36 #346FAF
square
#AF34AD #AF7434 #34AF36 #346FAF
split-complementary
#AF34AD #6FAF34 #34AF74
monochromatic
#511850 #80267E #AF34AD #CC54CA #DA83D9

Accessibility & contrast

On white

5.36
#AF34AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF34AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34AD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34AD#FFFFFF#000000##FFFFFF
##AF34AD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2260B0
Deuteranopia (green-blind)
#5570AA
Tritanopia (blue-blind)
#B5456D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34ad;
/* rgb */ color: rgb(175, 52, 173);
/* oklch */ color: oklch(55.4% 0.208 328.6);
Tailwind
colors: {
  custom: {
    50: '#ca77c6',
    500: '#af34ad',
    950: '#000000',
  },
}
SCSS
$custom: #af34ad;
$custom-light: #ca77c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af34ad",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 173
  },
  "hsl": {
    "h": 300.976,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55367,
    "c": 0.20757,
    "h": 328.6
  },
  "luminance": 0.14587
}

Semantic roles & 50–950 ramp

primary
#AF34AD
secondary
#7BC47C
accent
#DE4D4A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34AD

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

Preview Lab → · Contrast checker → · Palette generator →

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