#AF34B8#AF34B8

#AF34B8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.216 H 325.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF34B8
RGBrgb(175, 52, 184)
HSLhsl(296, 56%, 46%)
HSVhsv(296, 72%, 72%)
CMYKcmyk(4.9%, 71.7%, 0%, 27.8%)
CIE-LABlab(45.68, 65.08, -44.58)
CIE-LCHlch(45.68, 78.88, 325.59°)
OKLaboklab(56% 0.1772 -0.124)
OKLCHoklch(56% 0.216 325)
XYZxyz(27.5583, 15.0324, 46.7881)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34B8 #3DB834
analogous
#6D34B8 #AF34B8 #B8347F
triadic
#AF34B8 #B8AF34 #34B8AF
tetradic
#AF34B8 #B86D34 #3DB834 #347FB8
square
#AF34B8 #B86D34 #3DB834 #347FB8
split-complementary
#AF34B8 #7FB834 #34B86D
monochromatic
#541959 #822788 #AF34B8 #C859D0 #D889DE

Accessibility & contrast

On white

5.24
#AF34B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF34B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34B8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34B8#FFFFFF#000000##FFFFFF
##AF34B81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B63BC
Deuteranopia (green-blind)
#4F71B5
Tritanopia (blue-blind)
#B34A73
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af34b8;
/* rgb */ color: rgb(175, 52, 184);
/* oklch */ color: oklch(56.0% 0.216 325.0);
Tailwind
colors: {
  custom: {
    50: '#cb77ce',
    500: '#af34b8',
    950: '#000000',
  },
}
SCSS
$custom: #af34b8;
$custom-light: #cb77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af34b8",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 295.909,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56003,
    "c": 0.21631,
    "h": 325
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

primary
#AF34B8
secondary
#85C880
accent
#DF4953
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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