#AF34B9#AF34B9

#AF34B9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.217 H 324.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF34B9
RGBrgb(175, 52, 185)
HSLhsl(295, 56%, 46%)
HSVhsv(295, 72%, 73%)
CMYKcmyk(5.4%, 71.9%, 0%, 27.5%)
CIE-LABlab(45.74, 65.25, -45.07)
CIE-LCHlch(45.74, 79.31, 325.36°)
OKLaboklab(56.06% 0.1772 -0.1255)
OKLCHoklch(56.06% 0.217 324.7)
XYZxyz(27.6634, 15.0745, 47.3421)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B9 #3EB934
analogous
#6D34B9 #AF34B9 #B93481
triadic
#AF34B9 #B9AF34 #34B9AF
tetradic
#AF34B9 #B96D34 #3EB934 #3481B9
square
#AF34B9 #B96D34 #3EB934 #3481B9
split-complementary
#AF34B9 #81B934 #34B96D
monochromatic
#551959 #822789 #AF34B9 #C85AD1 #D889DE

Accessibility & contrast

On white

5.23
#AF34B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF34B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B9#FFFFFF#000000##FFFFFF
##AF34B91.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BD
Deuteranopia (green-blind)
#4E71B6
Tritanopia (blue-blind)
#B34B74
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b9;
/* rgb */ color: rgb(175, 52, 185);
/* oklch */ color: oklch(56.1% 0.217 324.7);
Tailwind
colors: {
  custom: {
    50: '#cb77ce',
    500: '#af34b9',
    950: '#000000',
  },
}
SCSS
$custom: #af34b9;
$custom-light: #cb77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b9",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 295.489,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56063,
    "c": 0.21711,
    "h": 324.7
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#AF34B9
secondary
#86C881
accent
#DF4854
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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