#AF34C5#AF34C5

#AF34C5 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.227 H 321.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF34C5
RGBrgb(175, 52, 197)
HSLhsl(291, 58%, 49%)
HSVhsv(291, 74%, 77%)
CMYKcmyk(11.2%, 73.6%, 0%, 22.7%)
CIE-LABlab(46.45, 67.37, -50.93)
CIE-LCHlch(46.45, 84.45, 322.91°)
OKLaboklab(56.8% 0.1765 -0.1426)
OKLCHoklch(56.8% 0.227 321.1)
XYZxyz(28.9841, 15.6027, 54.2974)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34C5 #4AC534
analogous
#6734C5 #AF34C5 #C53493
triadic
#AF34C5 #C5AF34 #34C5AF
tetradic
#AF34C5 #C56734 #4AC534 #3493C5
square
#AF34C5 #C56734 #4AC534 #3493C5
split-complementary
#AF34C5 #93C534 #34C567
monochromatic
#591A64 #842795 #AF34C5 #C461D5 #D691E2

Accessibility & contrast

On white

5.10
#AF34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AF34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34C5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34C5#FFFFFF#000000##FFFFFF
##AF34C51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#4572C2
Tritanopia (blue-blind)
#B0507A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af34c5;
/* rgb */ color: rgb(175, 52, 197);
/* oklch */ color: oklch(56.8% 0.227 321.1);
Tailwind
colors: {
  custom: {
    50: '#cb78d7',
    500: '#af34c5',
    950: '#000000',
  },
}
SCSS
$custom: #af34c5;
$custom-light: #cb78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#af34c5",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 290.897,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.568,
    "c": 0.22692,
    "h": 321.1
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#AF34C5
secondary
#92CD88
accent
#E1465E
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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