#AF34A2#AF34A2

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

Color values

HEX#AF34A2
RGBrgb(175, 52, 162)
HSLhsl(306, 54%, 45%)
HSVhsv(306, 70%, 69%)
CMYKcmyk(0%, 70.3%, 7.4%, 31.4%)
CIE-LABlab(44.49, 61.44, -33.45)
CIE-LCHlch(44.49, 69.96, 331.43°)
OKLaboklab(54.77% 0.1767 -0.0918)
OKLCHoklch(54.77% 0.199 332.5)
XYZxyz(25.4289, 14.1806, 35.5733)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A2 #34AF41
analogous
#7E34AF #AF34A2 #AF3465
triadic
#AF34A2 #A2AF34 #34A2AF
tetradic
#AF34A2 #AF7E34 #34AF41 #3465AF
square
#AF34A2 #AF7E34 #34AF41 #3465AF
split-complementary
#AF34A2 #65AF34 #34AF7E
monochromatic
#51184B #802676 #AF34A2 #CC54BF #DA83D1

Accessibility & contrast

On white

5.47
#AF34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF34A2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A2#FFFFFF#000000##FFFFFF
##AF34A21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#B74067
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af34a2;
/* rgb */ color: rgb(175, 52, 162);
/* oklch */ color: oklch(54.8% 0.199 332.5);
Tailwind
colors: {
  custom: {
    50: '#ca77be',
    500: '#af34a2',
    950: '#000000',
  },
}
SCSS
$custom: #af34a2;
$custom-light: #ca77be;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a2",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 306.341,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54766,
    "c": 0.19912,
    "h": 332.5
  },
  "luminance": 0.14179
}

Semantic roles & 50–950 ramp

primary
#AF34A2
secondary
#7BC483
accent
#DE5A4A
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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