#AB27A2#AB27A2

#AB27A2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.211 H 331.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB27A2
RGBrgb(171, 39, 162)
HSLhsl(304, 63%, 41%)
HSVhsv(304, 77%, 67%)
CMYKcmyk(0%, 77.2%, 5.3%, 32.9%)
CIE-LABlab(42.34, 64.76, -36.90)
CIE-LCHlch(42.34, 74.53, 330.33°)
OKLaboklab(53.09% 0.1848 -0.1017)
OKLCHoklch(53.09% 0.211 331.2)
XYZxyz(24.0417, 12.7196, 35.3643)
Luminance0.1272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27A2 #27AB30
analogous
#7227AB #AB27A2 #AB2760
triadic
#AB27A2 #A2AB27 #27A2AB
tetradic
#AB27A2 #AB7227 #27AB30 #2760AB
square
#AB27A2 #AB7227 #27AB30 #2760AB
split-complementary
#AB27A2 #60AB27 #27AB72
monochromatic
#471044 #791C73 #AB27A2 #D33DC8 #DE6ED6

Accessibility & contrast

On white

5.93
#AB27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB27A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27A2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27A2#FFFFFF#000000##FFFFFF
##AB27A21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#526A9F
Tritanopia (blue-blind)
#B23963
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab27a2;
/* rgb */ color: rgb(171, 39, 162);
/* oklch */ color: oklch(53.1% 0.211 331.2);
Tailwind
colors: {
  custom: {
    50: '#c871be',
    500: '#ab27a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab27a2;
$custom-light: #c871be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27a2",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 304.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53091,
    "c": 0.21096,
    "h": 331.2
  },
  "luminance": 0.12718
}

Semantic roles & 50–950 ramp

primary
#AB27A2
secondary
#69C56F
accent
#E64D42
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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