#AF34A0#AF34A0

#AF34A0 is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.7% C 0.198 H 333.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF34A0
RGBrgb(175, 52, 160)
HSLhsl(307, 54%, 45%)
HSVhsv(307, 70%, 69%)
CMYKcmyk(0%, 70.3%, 8.6%, 31.4%)
CIE-LABlab(44.39, 61.13, -32.42)
CIE-LCHlch(44.39, 69.19, 332.06°)
OKLaboklab(54.66% 0.1765 -0.0888)
OKLCHoklch(54.66% 0.198 333.3)
XYZxyz(25.2525, 14.1101, 34.6444)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A0 #34AF43
analogous
#8134AF #AF34A0 #AF3463
triadic
#AF34A0 #A0AF34 #34A0AF
tetradic
#AF34A0 #AF8134 #34AF43 #3463AF
square
#AF34A0 #AF8134 #34AF43 #3463AF
split-complementary
#AF34A0 #63AF34 #34AF81
monochromatic
#51184A #802675 #AF34A0 #CC54BE #DA83D0

Accessibility & contrast

On white

5.50
#AF34A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF34A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34A0
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A0#FFFFFF#000000##FFFFFF
##AF34A01.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305EA3
Deuteranopia (green-blind)
#5C6F9D
Tritanopia (blue-blind)
#B73F66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af34a0;
/* rgb */ color: rgb(175, 52, 160);
/* oklch */ color: oklch(54.7% 0.198 333.3);
Tailwind
colors: {
  custom: {
    50: '#ca77bc',
    500: '#af34a0',
    950: '#000000',
  },
}
SCSS
$custom: #af34a0;
$custom-light: #ca77bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a0",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 160
  },
  "hsl": {
    "h": 307.317,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54661,
    "c": 0.19762,
    "h": 333.3
  },
  "luminance": 0.14108
}

Semantic roles & 50–950 ramp

primary
#AF34A0
secondary
#7BC484
accent
#DE5C4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A0

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

Preview Lab → · Contrast checker → · Palette generator →

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