#A12AA8#A12AA8

#A12AA8 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.1% C 0.208 H 325.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A12AA8
RGBrgb(161, 42, 168)
HSLhsl(297, 60%, 41%)
HSVhsv(297, 75%, 66%)
CMYKcmyk(4.2%, 75%, 0%, 34.1%)
CIE-LABlab(41.31, 62.69, -42.21)
CIE-LCHlch(41.31, 75.57, 326.04°)
OKLaboklab(52.15% 0.1715 -0.1175)
OKLCHoklch(52.15% 0.208 325.6)
XYZxyz(22.5933, 12.0617, 38.1763)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12AA8 #31A82A
analogous
#622AA8 #A12AA8 #A82A70
triadic
#A12AA8 #A8A12A #2AA8A1
tetradic
#A12AA8 #A8622A #31A82A #2A70A8
square
#A12AA8 #A8622A #31A82A #2A70A8
split-complementary
#A12AA8 #70A82A #2AA862
monochromatic
#431246 #721E77 #A12AA8 #C740CF #D671DB

Accessibility & contrast

On white

6.15
#A12AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A12AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12AA8
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12AA8#FFFFFF#000000##FFFFFF
##A12AA81.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#A54067
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12aa8;
/* rgb */ color: rgb(161, 42, 168);
/* oklch */ color: oklch(52.1% 0.208 325.6);
Tailwind
colors: {
  custom: {
    50: '#c171c2',
    500: '#a12aa8',
    950: '#000000',
  },
}
SCSS
$custom: #a12aa8;
$custom-light: #c171c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a12aa8",
  "rgb": {
    "r": 161,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 296.667,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52147,
    "c": 0.20783,
    "h": 325.6
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#A12AA8
secondary
#70C36B
accent
#E3454D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A12AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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