#AF34B0#AF34B0

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

Color values

HEX#AF34B0
RGBrgb(175, 52, 176)
HSLhsl(300, 54%, 45%)
HSVhsv(300, 70%, 69%)
CMYKcmyk(0.6%, 70.5%, 0%, 31%)
CIE-LABlab(45.23, 63.72, -40.59)
CIE-LCHlch(45.23, 75.55, 327.50°)
OKLaboklab(55.54% 0.1773 -0.1124)
OKLCHoklch(55.54% 0.21 327.6)
XYZxyz(26.7433, 14.7064, 42.4959)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B0 #35B034
analogous
#7134B0 #AF34B0 #B03473
triadic
#AF34B0 #B0AF34 #34B0AF
tetradic
#AF34B0 #B07134 #35B034 #3473B0
square
#AF34B0 #B07134 #35B034 #3473B0
split-complementary
#AF34B0 #73B034 #34B071
monochromatic
#511852 #802681 #AF34B0 #CC55CD #DA84DB

Accessibility & contrast

On white

5.33
#AF34B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF34B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B0
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B0#FFFFFF#000000##FFFFFF
##AF34B01.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D61B3
Deuteranopia (green-blind)
#5471AD
Tritanopia (blue-blind)
#B4476F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34b0;
/* rgb */ color: rgb(175, 52, 176);
/* oklch */ color: oklch(55.5% 0.210 327.6);
Tailwind
colors: {
  custom: {
    50: '#ca77c8',
    500: '#af34b0',
    950: '#000000',
  },
}
SCSS
$custom: #af34b0;
$custom-light: #ca77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b0",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 176
  },
  "hsl": {
    "h": 299.516,
    "s": 54.386,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55537,
    "c": 0.20992,
    "h": 327.6
  },
  "luminance": 0.14705
}

Semantic roles & 50–950 ramp

primary
#AF34B0
secondary
#7CC47C
accent
#DE4A4B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B0

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

Preview Lab → · Contrast checker → · Palette generator →

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