#AF34B3#AF34B3

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

Color values

HEX#AF34B3
RGBrgb(175, 52, 179)
HSLhsl(298, 55%, 45%)
HSVhsv(298, 71%, 70%)
CMYKcmyk(2.2%, 70.9%, 0%, 29.8%)
CIE-LABlab(45.40, 64.22, -42.09)
CIE-LCHlch(45.40, 76.79, 326.76°)
OKLaboklab(55.71% 0.1773 -0.1168)
OKLCHoklch(55.71% 0.212 326.6)
XYZxyz(27.0434, 14.8265, 44.0765)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B3 #38B334
analogous
#6F34B3 #AF34B3 #B33478
triadic
#AF34B3 #B3AF34 #34B3AF
tetradic
#AF34B3 #B36F34 #38B334 #3478B3
square
#AF34B3 #B36F34 #38B334 #3478B3
split-complementary
#AF34B3 #78B334 #34B36F
monochromatic
#521854 #812684 #AF34B3 #CA56CE #D986DC

Accessibility & contrast

On white

5.30
#AF34B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF34B3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B3#FFFFFF#000000##FFFFFF
##AF34B31.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B7
Deuteranopia (green-blind)
#5271B0
Tritanopia (blue-blind)
#B44870
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af34b3;
/* rgb */ color: rgb(175, 52, 179);
/* oklch */ color: oklch(55.7% 0.212 326.6);
Tailwind
colors: {
  custom: {
    50: '#cb77ca',
    500: '#af34b3',
    950: '#000000',
  },
}
SCSS
$custom: #af34b3;
$custom-light: #cb77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b3",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 298.11,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55709,
    "c": 0.2123,
    "h": 326.6
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#AF34B3
secondary
#80C57D
accent
#DE494E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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