#AF34AB#AF34AB

#AF34AB is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.206 H 329.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF34AB
RGBrgb(175, 52, 171)
HSLhsl(302, 54%, 45%)
HSVhsv(302, 70%, 69%)
CMYKcmyk(0%, 70.3%, 2.3%, 31.4%)
CIE-LABlab(44.96, 62.89, -38.06)
CIE-LCHlch(44.96, 73.51, 328.82°)
OKLaboklab(55.26% 0.1772 -0.1051)
OKLCHoklch(55.26% 0.206 329.3)
XYZxyz(26.2577, 14.5122, 39.9383)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34AB #34AF38
analogous
#7634AF #AF34AB #AF346E
triadic
#AF34AB #ABAF34 #34ABAF
tetradic
#AF34AB #AF7634 #34AF38 #346EAF
square
#AF34AB #AF7634 #34AF38 #346EAF
split-complementary
#AF34AB #6EAF34 #34AF76
monochromatic
#51184F #80267D #AF34AB #CC54C8 #DA83D7

Accessibility & contrast

On white

5.38
#AF34AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF34AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34AB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34AB#FFFFFF#000000##FFFFFF
##AF34AB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#5770A8
Tritanopia (blue-blind)
#B5446C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af34ab;
/* rgb */ color: rgb(175, 52, 171);
/* oklch */ color: oklch(55.3% 0.206 329.3);
Tailwind
colors: {
  custom: {
    50: '#ca77c4',
    500: '#af34ab',
    950: '#000000',
  },
}
SCSS
$custom: #af34ab;
$custom-light: #ca77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af34ab",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 301.951,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55255,
    "c": 0.206,
    "h": 329.3
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#AF34AB
secondary
#7BC47D
accent
#DE4F4A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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