#AF34B5#AF34B5

#AF34B5 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.214 H 326.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF34B5
RGBrgb(175, 52, 181)
HSLhsl(297, 55%, 46%)
HSVhsv(297, 71%, 71%)
CMYKcmyk(3.3%, 71.3%, 0%, 29%)
CIE-LABlab(45.51, 64.56, -43.09)
CIE-LCHlch(45.51, 77.62, 326.28°)
OKLaboklab(55.83% 0.1773 -0.1197)
OKLCHoklch(55.83% 0.214 326)
XYZxyz(27.2471, 14.9079, 45.1495)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B5 #3AB534
analogous
#6E34B5 #AF34B5 #B5347A
triadic
#AF34B5 #B5AF34 #34B5AF
tetradic
#AF34B5 #B56E34 #3AB534 #347AB5
square
#AF34B5 #B56E34 #3AB534 #347AB5
split-complementary
#AF34B5 #7AB534 #34B56E
monochromatic
#531956 #812685 #AF34B5 #C957CF #D987DC

Accessibility & contrast

On white

5.27
#AF34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF34B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B5#FFFFFF#000000##FFFFFF
##AF34B51.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1462B9
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#B34971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b5;
/* rgb */ color: rgb(175, 52, 181);
/* oklch */ color: oklch(55.8% 0.214 326.0);
Tailwind
colors: {
  custom: {
    50: '#cb77cc',
    500: '#af34b5',
    950: '#000000',
  },
}
SCSS
$custom: #af34b5;
$custom-light: #cb77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b5",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 297.209,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55826,
    "c": 0.21389,
    "h": 326
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#AF34B5
secondary
#82C67F
accent
#DF4950
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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