#AF34A3#AF34A3

#AF34A3 is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.8% C 0.200 H 332.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF34A3
RGBrgb(175, 52, 163)
HSLhsl(306, 54%, 45%)
HSVhsv(306, 70%, 69%)
CMYKcmyk(0%, 70.3%, 6.9%, 31.4%)
CIE-LABlab(44.54, 61.60, -33.97)
CIE-LCHlch(44.54, 70.35, 331.13°)
OKLaboklab(54.82% 0.1768 -0.0933)
OKLCHoklch(54.82% 0.2 332.2)
XYZxyz(25.5181, 14.2163, 36.0433)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A3 #34AF40
analogous
#7E34AF #AF34A3 #AF3465
triadic
#AF34A3 #A3AF34 #34A3AF
tetradic
#AF34A3 #AF7E34 #34AF40 #3465AF
square
#AF34A3 #AF7E34 #34AF40 #3465AF
split-complementary
#AF34A3 #65AF34 #34AF7E
monochromatic
#51184B #802677 #AF34A3 #CC54C0 #DA83D2

Accessibility & contrast

On white

5.46
#AF34A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF34A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34A3
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A3#FFFFFF#000000##FFFFFF
##AF34A31.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA6
Deuteranopia (green-blind)
#5B70A0
Tritanopia (blue-blind)
#B64168
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af34a3;
/* rgb */ color: rgb(175, 52, 163);
/* oklch */ color: oklch(54.8% 0.200 332.2);
Tailwind
colors: {
  custom: {
    50: '#ca77be',
    500: '#af34a3',
    950: '#000000',
  },
}
SCSS
$custom: #af34a3;
$custom-light: #ca77be;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a3",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 305.854,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54819,
    "c": 0.19988,
    "h": 332.2
  },
  "luminance": 0.14214
}

Semantic roles & 50–950 ramp

primary
#AF34A3
secondary
#7BC482
accent
#DE594A
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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