#AF34A5#AF34A5

#AF34A5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 54.9% C 0.201 H 331.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF34A5
RGBrgb(175, 52, 165)
HSLhsl(305, 54%, 45%)
HSVhsv(305, 70%, 69%)
CMYKcmyk(0%, 70.3%, 5.7%, 31.4%)
CIE-LABlab(44.64, 61.92, -35.00)
CIE-LCHlch(44.64, 71.13, 330.52°)
OKLaboklab(54.93% 0.1769 -0.0963)
OKLCHoklch(54.93% 0.201 331.4)
XYZxyz(25.6987, 14.2886, 36.9945)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A5 #34AF3E
analogous
#7C34AF #AF34A5 #AF3468
triadic
#AF34A5 #A5AF34 #34A5AF
tetradic
#AF34A5 #AF7C34 #34AF3E #3468AF
square
#AF34A5 #AF7C34 #34AF3E #3468AF
split-complementary
#AF34A5 #68AF34 #34AF7C
monochromatic
#51184C #802679 #AF34A5 #CC54C2 #DA83D3

Accessibility & contrast

On white

5.44
#AF34A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF34A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34A5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A5#FFFFFF#000000##FFFFFF
##AF34A51.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FA8
Deuteranopia (green-blind)
#5A70A2
Tritanopia (blue-blind)
#B64269
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af34a5;
/* rgb */ color: rgb(175, 52, 165);
/* oklch */ color: oklch(54.9% 0.201 331.4);
Tailwind
colors: {
  custom: {
    50: '#ca77c0',
    500: '#af34a5',
    950: '#000000',
  },
}
SCSS
$custom: #af34a5;
$custom-light: #ca77c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a5",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 304.878,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.20139,
    "h": 331.4
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#AF34A5
secondary
#7BC481
accent
#DE564A
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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