#AF34B1#AF34B1

#AF34B1 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.211 H 327.3°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF34B1
RGBrgb(175, 52, 177)
HSLhsl(299, 55%, 45%)
HSVhsv(299, 71%, 69%)
CMYKcmyk(1.1%, 70.6%, 0%, 30.6%)
CIE-LABlab(45.28, 63.89, -41.09)
CIE-LCHlch(45.28, 75.96, 327.25°)
OKLaboklab(55.59% 0.1773 -0.1139)
OKLCHoklch(55.59% 0.211 327.3)
XYZxyz(26.8426, 14.7461, 43.0189)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B1 #36B134
analogous
#7134B1 #AF34B1 #B13475
triadic
#AF34B1 #B1AF34 #34B1AF
tetradic
#AF34B1 #B17134 #36B134 #3475B1
square
#AF34B1 #B17134 #36B134 #3475B1
split-complementary
#AF34B1 #75B134 #34B171
monochromatic
#511852 #802682 #AF34B1 #CB55CD #DA84DB

Accessibility & contrast

On white

5.32
#AF34B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AF34B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B1#FFFFFF#000000##FFFFFF
##AF34B11.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C61B4
Deuteranopia (green-blind)
#5371AE
Tritanopia (blue-blind)
#B4476F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34b1;
/* rgb */ color: rgb(175, 52, 177);
/* oklch */ color: oklch(55.6% 0.211 327.3);
Tailwind
colors: {
  custom: {
    50: '#ca77c9',
    500: '#af34b1',
    950: '#000000',
  },
}
SCSS
$custom: #af34b1;
$custom-light: #ca77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b1",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 299.04,
    "s": 54.585,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55594,
    "c": 0.21071,
    "h": 327.3
  },
  "luminance": 0.14744
}

Semantic roles & 50–950 ramp

primary
#AF34B1
secondary
#7DC57C
accent
#DE4A4C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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