#AF34A8#AF34A8

#AF34A8 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.1% C 0.204 H 330.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF34A8
RGBrgb(175, 52, 168)
HSLhsl(303, 54%, 45%)
HSVhsv(303, 70%, 69%)
CMYKcmyk(0%, 70.3%, 4%, 31.4%)
CIE-LABlab(44.80, 62.40, -36.54)
CIE-LCHlch(44.80, 72.31, 329.65°)
OKLaboklab(55.09% 0.1771 -0.1007)
OKLCHoklch(55.09% 0.204 330.4)
XYZxyz(25.9750, 14.3991, 38.4494)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34A8 #34AF3B
analogous
#7934AF #AF34A8 #AF346A
triadic
#AF34A8 #A8AF34 #34A8AF
tetradic
#AF34A8 #AF7934 #34AF3B #346AAF
square
#AF34A8 #AF7934 #34AF3B #346AAF
split-complementary
#AF34A8 #6AAF34 #34AF79
monochromatic
#51184D #80267B #AF34A8 #CC54C5 #DA83D5

Accessibility & contrast

On white

5.41
#AF34A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF34A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34A8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34A8#FFFFFF#000000##FFFFFF
##AF34A81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAB
Deuteranopia (green-blind)
#5870A5
Tritanopia (blue-blind)
#B6436A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af34a8;
/* rgb */ color: rgb(175, 52, 168);
/* oklch */ color: oklch(55.1% 0.204 330.4);
Tailwind
colors: {
  custom: {
    50: '#ca77c2',
    500: '#af34a8',
    950: '#000000',
  },
}
SCSS
$custom: #af34a8;
$custom-light: #ca77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af34a8",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 303.415,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55089,
    "c": 0.20368,
    "h": 330.4
  },
  "luminance": 0.14397
}

Semantic roles & 50–950 ramp

primary
#AF34A8
secondary
#7BC47F
accent
#DE534A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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