#AB34CF#AB34CF

#AB34CF is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.9% C 0.234 H 316.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB34CF
RGBrgb(171, 52, 207)
HSLhsl(286, 62%, 51%)
HSVhsv(286, 75%, 81%)
CMYKcmyk(17.4%, 74.9%, 0%, 18.8%)
CIE-LABlab(46.47, 68.42, -56.70)
CIE-LCHlch(46.47, 88.87, 320.35°)
OKLaboklab(56.9% 0.1708 -0.1596)
OKLCHoklch(56.9% 0.234 316.9)
XYZxyz(29.2834, 15.6201, 60.4919)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34CF #58CF34
analogous
#5E34CF #AB34CF #CF34A5
triadic
#AB34CF #CFAB34 #34CFAB
tetradic
#AB34CF #CF5E34 #58CF34 #34A5CF
square
#AB34CF #CF5E34 #58CF34 #34A5CF
split-complementary
#AB34CF #A5CF34 #34CF5E
monochromatic
#5B1A6E #8426A0 #AB34CF #BF65DB #D497E6

Accessibility & contrast

On white

5.09
#AB34CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AB34CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34CF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34CF#FFFFFF#000000##FFFFFF
##AB34CF1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#3672CC
Tritanopia (blue-blind)
#A95680
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab34cf;
/* rgb */ color: rgb(171, 52, 207);
/* oklch */ color: oklch(56.9% 0.234 316.9);
Tailwind
colors: {
  custom: {
    50: '#c878de',
    500: '#ab34cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab34cf;
$custom-light: #c878de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34cf",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 286.065,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56897,
    "c": 0.23378,
    "h": 316.9
  },
  "luminance": 0.15619
}

Semantic roles & 50–950 ramp

primary
#AB34CF
secondary
#9DD28D
accent
#E54369
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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