#A12BA2#A12BA2

#A12BA2 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.202 H 327.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A12BA2
RGBrgb(161, 43, 162)
HSLhsl(299, 58%, 40%)
HSVhsv(299, 73%, 64%)
CMYKcmyk(0.6%, 73.5%, 0%, 36.5%)
CIE-LABlab(41.08, 61.34, -38.99)
CIE-LCHlch(41.08, 72.69, 327.56°)
OKLaboklab(51.87% 0.1707 -0.1081)
OKLCHoklch(51.87% 0.202 327.6)
XYZxyz(22.0831, 11.9150, 35.3121)
Luminance0.1191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12BA2 #2CA22B
analogous
#662BA2 #A12BA2 #A22B67
triadic
#A12BA2 #A2A12B #2BA2A1
tetradic
#A12BA2 #A2662B #2CA22B #2B67A2
square
#A12BA2 #A2662B #2CA22B #2B67A2
split-complementary
#A12BA2 #67A22B #2BA266
monochromatic
#411141 #711E72 #A12BA2 #CB3ECC #D86FD9

Accessibility & contrast

On white

6.21
#A12BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A12BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12BA2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12BA2#FFFFFF#000000##FFFFFF
##A12BA21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1157A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A63E64
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12ba2;
/* rgb */ color: rgb(161, 43, 162);
/* oklch */ color: oklch(51.9% 0.202 327.6);
Tailwind
colors: {
  custom: {
    50: '#c071be',
    500: '#a12ba2',
    950: '#000000',
  },
}
SCSS
$custom: #a12ba2;
$custom-light: #c071be;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ba2",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 299.496,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51869,
    "c": 0.20204,
    "h": 327.6
  },
  "luminance": 0.11913
}

Semantic roles & 50–950 ramp

primary
#A12BA2
secondary
#6AC069
accent
#E14748
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A12BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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