#AF34B2#AF34B2

#AF34B2 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.211 H 326.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF34B2
RGBrgb(175, 52, 178)
HSLhsl(299, 55%, 45%)
HSVhsv(299, 71%, 70%)
CMYKcmyk(1.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(45.34, 64.06, -41.59)
CIE-LCHlch(45.34, 76.38, 327.00°)
OKLaboklab(55.65% 0.1773 -0.1154)
OKLCHoklch(55.65% 0.212 326.9)
XYZxyz(26.9426, 14.7861, 43.5458)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B2 #37B234
analogous
#7034B2 #AF34B2 #B23476
triadic
#AF34B2 #B2AF34 #34B2AF
tetradic
#AF34B2 #B27034 #37B234 #3476B2
square
#AF34B2 #B27034 #37B234 #3476B2
split-complementary
#AF34B2 #76B234 #34B270
monochromatic
#521853 #802683 #AF34B2 #CB56CE #D985DB

Accessibility & contrast

On white

5.31
#AF34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B2#FFFFFF#000000##FFFFFF
##AF34B21.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B6
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#B44870
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34b2;
/* rgb */ color: rgb(175, 52, 178);
/* oklch */ color: oklch(55.7% 0.211 326.9);
Tailwind
colors: {
  custom: {
    50: '#ca77c9',
    500: '#af34b2',
    950: '#000000',
  },
}
SCSS
$custom: #af34b2;
$custom-light: #ca77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b2",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 298.571,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55652,
    "c": 0.2115,
    "h": 326.9
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#AF34B2
secondary
#7FC57D
accent
#DE4A4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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