#A12BAB#A12BAB

#A12BAB is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.209 H 324.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A12BAB
RGBrgb(161, 43, 171)
HSLhsl(295, 60%, 42%)
HSVhsv(295, 75%, 67%)
CMYKcmyk(5.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(41.61, 62.88, -43.53)
CIE-LCHlch(41.61, 76.48, 325.30°)
OKLaboklab(52.41% 0.1704 -0.1213)
OKLCHoklch(52.41% 0.209 324.5)
XYZxyz(22.9119, 12.2466, 39.6772)
Luminance0.1225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12BAB #35AB2B
analogous
#612BAB #A12BAB #AB2B75
triadic
#A12BAB #ABA12B #2BABA1
tetradic
#A12BAB #AB612B #35AB2B #2B75AB
square
#A12BAB #AB612B #35AB2B #2B75AB
split-complementary
#A12BAB #75AB2B #2BAB61
monochromatic
#451249 #731F7A #A12BAB #C543D0 #D474DC

Accessibility & contrast

On white

6.09
#A12BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A12BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12BAB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12BAB#FFFFFF#000000##FFFFFF
##A12BAB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#4567A8
Tritanopia (blue-blind)
#A44269
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a12bab;
/* rgb */ color: rgb(161, 43, 171);
/* oklch */ color: oklch(52.4% 0.209 324.5);
Tailwind
colors: {
  custom: {
    50: '#c171c4',
    500: '#a12bab',
    950: '#000000',
  },
}
SCSS
$custom: #a12bab;
$custom-light: #c171c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a12bab",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 295.313,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52412,
    "c": 0.20919,
    "h": 324.5
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#A12BAB
secondary
#75C46E
accent
#E34551
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A12BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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