#AF34B6#AF34B6

#AF34B6 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.215 H 325.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF34B6
RGBrgb(175, 52, 182)
HSLhsl(297, 56%, 46%)
HSVhsv(297, 71%, 71%)
CMYKcmyk(3.8%, 71.4%, 0%, 28.6%)
CIE-LABlab(45.56, 64.73, -43.59)
CIE-LCHlch(45.56, 78.04, 326.05°)
OKLaboklab(55.89% 0.1772 -0.1212)
OKLCHoklch(55.89% 0.215 325.6)
XYZxyz(27.3501, 14.9491, 45.6918)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B6 #3BB634
analogous
#6E34B6 #AF34B6 #B6347C
triadic
#AF34B6 #B6AF34 #34B6AF
tetradic
#AF34B6 #B66E34 #3BB634 #347CB6
square
#AF34B6 #B66E34 #3BB634 #347CB6
split-complementary
#AF34B6 #7CB634 #34B66E
monochromatic
#531957 #812686 #AF34B6 #C958CF #D888DD

Accessibility & contrast

On white

5.26
#AF34B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF34B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B6
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B6#FFFFFF#000000##FFFFFF
##AF34B61.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162BA
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#B34972
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b6;
/* rgb */ color: rgb(175, 52, 182);
/* oklch */ color: oklch(55.9% 0.215 325.6);
Tailwind
colors: {
  custom: {
    50: '#cb77cc',
    500: '#af34b6',
    950: '#000000',
  },
}
SCSS
$custom: #af34b6;
$custom-light: #cb77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b6",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 296.769,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55885,
    "c": 0.21469,
    "h": 325.6
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#AF34B6
secondary
#83C77F
accent
#DF4951
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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