#AF34B4#AF34B4

#AF34B4 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.213 H 326.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF34B4
RGBrgb(175, 52, 180)
HSLhsl(298, 55%, 45%)
HSVhsv(298, 71%, 71%)
CMYKcmyk(2.8%, 71.1%, 0%, 29.4%)
CIE-LABlab(45.45, 64.39, -42.59)
CIE-LCHlch(45.45, 77.21, 326.52°)
OKLaboklab(55.77% 0.1773 -0.1183)
OKLCHoklch(55.77% 0.213 326.3)
XYZxyz(27.1449, 14.8671, 44.6111)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B4 #39B434
analogous
#6F34B4 #AF34B4 #B43479
triadic
#AF34B4 #B4AF34 #34B4AF
tetradic
#AF34B4 #B46F34 #39B434 #3479B4
square
#AF34B4 #B46F34 #39B434 #3479B4
split-complementary
#AF34B4 #79B434 #34B46F
monochromatic
#531955 #812685 #AF34B4 #CA57CE #D986DC

Accessibility & contrast

On white

5.29
#AF34B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF34B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B4#FFFFFF#000000##FFFFFF
##AF34B41.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1662B8
Deuteranopia (green-blind)
#5171B1
Tritanopia (blue-blind)
#B44971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b4;
/* rgb */ color: rgb(175, 52, 180);
/* oklch */ color: oklch(55.8% 0.213 326.3);
Tailwind
colors: {
  custom: {
    50: '#cb77cb',
    500: '#af34b4',
    950: '#000000',
  },
}
SCSS
$custom: #af34b4;
$custom-light: #cb77cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b4",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 297.656,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55768,
    "c": 0.21309,
    "h": 326.3
  },
  "luminance": 0.14865
}

Semantic roles & 50–950 ramp

primary
#AF34B4
secondary
#81C67E
accent
#DF494F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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