#AF34A7#AF34A7

#AF34A7 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.0% C 0.203 H 330.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF34A7
RGBrgb(175, 52, 167)
HSLhsl(304, 54%, 45%)
HSVhsv(304, 70%, 69%)
CMYKcmyk(0%, 70.3%, 4.6%, 31.4%)
CIE-LABlab(44.75, 62.24, -36.03)
CIE-LCHlch(44.75, 71.91, 329.94°)
OKLaboklab(55.03% 0.177 -0.0992)
OKLCHoklch(55.03% 0.203 330.7)
XYZxyz(25.8822, 14.3620, 37.9607)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A7 #34AF3C
analogous
#7934AF #AF34A7 #AF346A
triadic
#AF34A7 #A7AF34 #34A7AF
tetradic
#AF34A7 #AF7934 #34AF3C #346AAF
square
#AF34A7 #AF7934 #34AF3C #346AAF
split-complementary
#AF34A7 #6AAF34 #34AF79
monochromatic
#51184D #80267A #AF34A7 #CC54C4 #DA83D5

Accessibility & contrast

On white

5.42
#AF34A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF34A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34A7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A7#FFFFFF#000000##FFFFFF
##AF34A71.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAA
Deuteranopia (green-blind)
#5970A4
Tritanopia (blue-blind)
#B6436A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af34a7;
/* rgb */ color: rgb(175, 52, 167);
/* oklch */ color: oklch(55.0% 0.203 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca77c1',
    500: '#af34a7',
    950: '#000000',
  },
}
SCSS
$custom: #af34a7;
$custom-light: #ca77c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a7",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 303.902,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55034,
    "c": 0.20291,
    "h": 330.7
  },
  "luminance": 0.1436
}

Semantic roles & 50–950 ramp

primary
#AF34A7
secondary
#7BC480
accent
#DE544A
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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