#AF34BB#AF34BB

#AF34BB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.219 H 324.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF34BB
RGBrgb(175, 52, 187)
HSLhsl(295, 56%, 47%)
HSVhsv(295, 72%, 73%)
CMYKcmyk(6.4%, 72.2%, 0%, 26.7%)
CIE-LABlab(45.85, 65.60, -46.06)
CIE-LCHlch(45.85, 80.15, 324.93°)
OKLaboklab(56.18% 0.1771 -0.1284)
OKLCHoklch(56.18% 0.219 324.1)
XYZxyz(27.8761, 15.1595, 48.4619)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF34BB #40BB34
analogous
#6C34BB #AF34BB #BB3483
triadic
#AF34BB #BBAF34 #34BBAF
tetradic
#AF34BB #BB6C34 #40BB34 #3483BB
square
#AF34BB #BB6C34 #40BB34 #3483BB
split-complementary
#AF34BB #83BB34 #34BB6C
monochromatic
#55195B #82278B #AF34BB #C75BD1 #D78BDF

Accessibility & contrast

On white

5.21
#AF34BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF34BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF34BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF34BB#FFFFFF#000000##FFFFFF
##AF34BB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#4D72B8
Tritanopia (blue-blind)
#B24C75
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af34bb;
/* rgb */ color: rgb(175, 52, 187);
/* oklch */ color: oklch(56.2% 0.219 324.1);
Tailwind
colors: {
  custom: {
    50: '#cb78d0',
    500: '#af34bb',
    950: '#000000',
  },
}
SCSS
$custom: #af34bb;
$custom-light: #cb78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af34bb",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 294.667,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56183,
    "c": 0.21873,
    "h": 324.1
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#AF34BB
secondary
#88C982
accent
#E04856
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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