#A12CBA#A12CBA

#A12CBA is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.220 H 319.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#A12CBA
RGBrgb(161, 44, 186)
HSLhsl(289, 62%, 45%)
HSVhsv(289, 76%, 73%)
CMYKcmyk(13.4%, 76.3%, 0%, 27.1%)
CIE-LABlab(42.65, 65.24, -50.72)
CIE-LCHlch(42.65, 82.64, 322.13°)
OKLaboklab(53.45% 0.1683 -0.1424)
OKLCHoklch(53.45% 0.22 319.8)
XYZxyz(24.4604, 12.9249, 47.6512)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12CBA #45BA2C
analogous
#5A2CBA #A12CBA #BA2C8C
triadic
#A12CBA #BAA12C #2CBAA1
tetradic
#A12CBA #BA5A2C #45BA2C #2C8CBA
square
#A12CBA #BA5A2C #45BA2C #2C8CBA
split-complementary
#A12CBA #8CBA2C #2CBA5A
monochromatic
#4B1557 #762089 #A12CBA #BD4ED5 #D080E1

Accessibility & contrast

On white

5.86
#A12CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#A12CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12CBA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12CBA#FFFFFF#000000##FFFFFF
##A12CBA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#3969B7
Tritanopia (blue-blind)
#A14A72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a12cba;
/* rgb */ color: rgb(161, 44, 186);
/* oklch */ color: oklch(53.5% 0.220 319.8);
Tailwind
colors: {
  custom: {
    50: '#c172cf',
    500: '#a12cba',
    950: '#000000',
  },
}
SCSS
$custom: #a12cba;
$custom-light: #c172cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a12cba",
  "rgb": {
    "r": 161,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 289.437,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53452,
    "c": 0.22044,
    "h": 319.8
  },
  "luminance": 0.12924
}

Semantic roles & 50–950 ramp

primary
#A12CBA
secondary
#87CA78
accent
#E5435F
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #A12CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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