#AF34B7#AF34B7

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

Color values

HEX#AF34B7
RGBrgb(175, 52, 183)
HSLhsl(296, 56%, 46%)
HSVhsv(296, 72%, 72%)
CMYKcmyk(4.4%, 71.6%, 0%, 28.2%)
CIE-LABlab(45.62, 64.91, -44.09)
CIE-LCHlch(45.62, 78.46, 325.81°)
OKLaboklab(55.94% 0.1772 -0.1226)
OKLCHoklch(55.94% 0.216 325.3)
XYZxyz(27.4538, 14.9906, 46.2380)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B7 #3CB734
analogous
#6D34B7 #AF34B7 #B7347D
triadic
#AF34B7 #B7AF34 #34B7AF
tetradic
#AF34B7 #B76D34 #3CB734 #347DB7
square
#AF34B7 #B76D34 #3CB734 #347DB7
split-complementary
#AF34B7 #7DB734 #34B76D
monochromatic
#541958 #812687 #AF34B7 #C859D0 #D888DD

Accessibility & contrast

On white

5.25
#AF34B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AF34B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B7#FFFFFF#000000##FFFFFF
##AF34B71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E62BB
Deuteranopia (green-blind)
#4F71B4
Tritanopia (blue-blind)
#B34A72
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b7;
/* rgb */ color: rgb(175, 52, 183);
/* oklch */ color: oklch(55.9% 0.215 325.3);
Tailwind
colors: {
  custom: {
    50: '#cb77cd',
    500: '#af34b7',
    950: '#000000',
  },
}
SCSS
$custom: #af34b7;
$custom-light: #cb77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b7",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 296.336,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55944,
    "c": 0.2155,
    "h": 325.3
  },
  "luminance": 0.14989
}

Semantic roles & 50–950 ramp

primary
#AF34B7
secondary
#84C780
accent
#DF4952
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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