#A12AB7#A12AB7

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

Color values

HEX#A12AB7
RGBrgb(161, 42, 183)
HSLhsl(291, 63%, 44%)
HSVhsv(291, 77%, 72%)
CMYKcmyk(12%, 77%, 0%, 28.2%)
CIE-LABlab(42.24, 65.33, -49.63)
CIE-LCHlch(42.24, 82.04, 322.78°)
OKLaboklab(53.1% 0.1703 -0.1391)
OKLCHoklch(53.1% 0.22 320.8)
XYZxyz(24.0721, 12.6532, 45.9649)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12AB7 #40B72A
analogous
#5A2AB7 #A12AB7 #B72A87
triadic
#A12AB7 #B7A12A #2AB7A1
tetradic
#A12AB7 #B75A2A #40B72A #2A87B7
square
#A12AB7 #B75A2A #40B72A #2A87B7
split-complementary
#A12AB7 #87B72A #2AB75A
monochromatic
#491353 #751F85 #A12AB7 #BF49D5 #D17BE1

Accessibility & contrast

On white

5.95
#A12AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A12AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12AB7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12AB7#FFFFFF#000000##FFFFFF
##A12AB71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3A68B4
Tritanopia (blue-blind)
#A24770
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a12ab7;
/* rgb */ color: rgb(161, 42, 183);
/* oklch */ color: oklch(53.1% 0.220 320.8);
Tailwind
colors: {
  custom: {
    50: '#c171cd',
    500: '#a12ab7',
    950: '#000000',
  },
}
SCSS
$custom: #a12ab7;
$custom-light: #c171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ab7",
  "rgb": {
    "r": 161,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 290.638,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53098,
    "c": 0.21993,
    "h": 320.8
  },
  "luminance": 0.12652
}

Semantic roles & 50–950 ramp

primary
#A12AB7
secondary
#81C974
accent
#E6425C
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A12AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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