#A12E9B#A12E9B

#A12E9B is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.193 H 330.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A12E9B
RGBrgb(161, 46, 155)
HSLhsl(303, 56%, 41%)
HSVhsv(303, 71%, 63%)
CMYKcmyk(0%, 71.4%, 3.7%, 36.9%)
CIE-LABlab(41.06, 59.15, -34.83)
CIE-LCHlch(41.06, 68.64, 329.51°)
OKLaboklab(51.73% 0.1676 -0.096)
OKLCHoklch(51.73% 0.193 330.2)
XYZxyz(21.5912, 11.8993, 32.1636)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12E9B #2EA134
analogous
#6D2EA1 #A12E9B #A12E62
triadic
#A12E9B #9BA12E #2E9BA1
tetradic
#A12E9B #A16D2E #2EA134 #2E62A1
square
#A12E9B #A16D2E #2EA134 #2E62A1
split-complementary
#A12E9B #62A12E #2EA16D
monochromatic
#42133F #71206D #A12E9B #C943C2 #D773D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A12E9B#FFFFFF#000000##FFFFFF
##A12E9B1.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)
#22579E
Deuteranopia (green-blind)
#506698
Tritanopia (blue-blind)
#A73C61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12e9b;
/* rgb */ color: rgb(161, 46, 155);
/* oklch */ color: oklch(51.7% 0.193 330.2);
Tailwind
colors: {
  custom: {
    50: '#c072b9',
    500: '#a12e9b',
    950: '#000000',
  },
}
SCSS
$custom: #a12e9b;
$custom-light: #c072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a12e9b",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 303.13,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.1932,
    "h": 330.2
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#A12E9B
secondary
#6CBE71
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A12E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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