#AF34AF#AF34AF

#AF34AF is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.5% C 0.209 H 327.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF34AF
RGBrgb(175, 52, 175)
HSLhsl(300, 54%, 45%)
HSVhsv(300, 70%, 69%)
CMYKcmyk(0%, 70.3%, 0%, 31.4%)
CIE-LABlab(45.17, 63.55, -40.09)
CIE-LCHlch(45.17, 75.14, 327.76°)
OKLaboklab(55.48% 0.1773 -0.111)
OKLCHoklch(55.48% 0.209 327.9)
XYZxyz(26.6447, 14.6670, 41.9768)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34AF #34AF34
analogous
#7234AF #AF34AF #AF3472
triadic
#AF34AF #AFAF34 #34AFAF
tetradic
#AF34AF #AF7234 #34AF34 #3472AF
square
#AF34AF #AF7234 #34AF34 #3472AF
split-complementary
#AF34AF #72AF34 #34AF72
monochromatic
#511851 #802680 #AF34AF #CC54CC #DA83DA

Accessibility & contrast

On white

5.34
#AF34AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF34AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34AF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34AF#FFFFFF#000000##FFFFFF
##AF34AF1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#5470AC
Tritanopia (blue-blind)
#B4466E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34af;
/* rgb */ color: rgb(175, 52, 175);
/* oklch */ color: oklch(55.5% 0.209 327.9);
Tailwind
colors: {
  custom: {
    50: '#ca77c7',
    500: '#af34af',
    950: '#000000',
  },
}
SCSS
$custom: #af34af;
$custom-light: #ca77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af34af",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5548,
    "c": 0.20913,
    "h": 327.9
  },
  "luminance": 0.14665
}

Semantic roles & 50–950 ramp

primary
#AF34AF
secondary
#7BC47B
accent
#DE4A4A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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