#AF34BD#AF34BD

#AF34BD is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.220 H 323.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF34BD
RGBrgb(175, 52, 189)
HSLhsl(294, 57%, 47%)
HSVhsv(294, 72%, 74%)
CMYKcmyk(7.4%, 72.5%, 0%, 25.9%)
CIE-LABlab(45.97, 65.95, -47.04)
CIE-LCHlch(45.97, 81.01, 324.50°)
OKLaboklab(56.3% 0.177 -0.1312)
OKLCHoklch(56.3% 0.22 323.4)
XYZxyz(28.0917, 15.2458, 49.5973)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34BD #42BD34
analogous
#6B34BD #AF34BD #BD3486
triadic
#AF34BD #BDAF34 #34BDAF
tetradic
#AF34BD #BD6B34 #42BD34 #3486BD
square
#AF34BD #BD6B34 #42BD34 #3486BD
split-complementary
#AF34BD #86BD34 #34BD6B
monochromatic
#561A5D #83278D #AF34BD #C65CD2 #D78CDF

Accessibility & contrast

On white

5.19
#AF34BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF34BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34BD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34BD#FFFFFF#000000##FFFFFF
##AF34BD1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#4B72BA
Tritanopia (blue-blind)
#B24D76
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af34bd;
/* rgb */ color: rgb(175, 52, 189);
/* oklch */ color: oklch(56.3% 0.220 323.4);
Tailwind
colors: {
  custom: {
    50: '#cb78d1',
    500: '#af34bd',
    950: '#000000',
  },
}
SCSS
$custom: #af34bd;
$custom-light: #cb78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af34bd",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 293.869,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56304,
    "c": 0.22036,
    "h": 323.4
  },
  "luminance": 0.15244
}

Semantic roles & 50–950 ramp

primary
#AF34BD
secondary
#8ACA83
accent
#E04857
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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