#AF34D6#AF34D6

#AF34D6 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.9% C 0.241 H 316.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF34D6
RGBrgb(175, 52, 214)
HSLhsl(286, 66%, 52%)
HSVhsv(286, 76%, 84%)
CMYKcmyk(18.2%, 75.7%, 0%, 16.1%)
CIE-LABlab(47.53, 70.50, -58.99)
CIE-LCHlch(47.53, 91.93, 320.08°)
OKLaboklab(57.91% 0.1747 -0.1662)
OKLCHoklch(57.91% 0.241 316.4)
XYZxyz(31.0429, 16.4263, 65.1407)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34D6 #5BD634
analogous
#5E34D6 #AF34D6 #D634AC
triadic
#AF34D6 #D6AF34 #34D6AF
tetradic
#AF34D6 #D65E34 #5BD634 #34ACD6
square
#AF34D6 #D65E34 #5BD634 #34ACD6
split-complementary
#AF34D6 #ACD634 #34D65E
monochromatic
#611877 #8A22AA #AF34D6 #C367E0 #D79AEB

Accessibility & contrast

On white

4.90
#AF34D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF34D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34D6
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34D6#FFFFFF#000000##FFFFFF
##AF34D61.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#3474D2
Tritanopia (blue-blind)
#AD5884
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af34d6;
/* rgb */ color: rgb(175, 52, 214);
/* oklch */ color: oklch(57.9% 0.241 316.4);
Tailwind
colors: {
  custom: {
    50: '#cb79e3',
    500: '#af34d6',
    950: '#000000',
  },
}
SCSS
$custom: #af34d6;
$custom-light: #cb79e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af34d6",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 214
  },
  "hsl": {
    "h": 285.556,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57909,
    "c": 0.24111,
    "h": 316.4
  },
  "luminance": 0.16425
}

Semantic roles & 50–950 ramp

primary
#AF34D6
secondary
#A1D690
accent
#E93E68
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF34D6

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

Preview Lab → · Contrast checker → · Palette generator →

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