#A12BA6#A12BA6

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

Color values

HEX#A12BA6
RGBrgb(161, 43, 166)
HSLhsl(298, 59%, 41%)
HSVhsv(298, 74%, 65%)
CMYKcmyk(3%, 74.1%, 0%, 34.9%)
CIE-LABlab(41.31, 62.02, -41.02)
CIE-LCHlch(41.31, 74.36, 326.52°)
OKLaboklab(52.11% 0.1706 -0.114)
OKLCHoklch(52.11% 0.205 326.2)
XYZxyz(22.4443, 12.0595, 37.2146)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12BA6 #30A62B
analogous
#632BA6 #A12BA6 #A62B6D
triadic
#A12BA6 #A6A12B #2BA6A1
tetradic
#A12BA6 #A6632B #30A62B #2B6DA6
square
#A12BA6 #A6632B #30A62B #2B6DA6
split-complementary
#A12BA6 #6DA62B #2BA663
monochromatic
#431245 #721E75 #A12BA6 #C841CE #D671DA

Accessibility & contrast

On white

6.16
#A12BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A12BA6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12BA6#FFFFFF#000000##FFFFFF
##A12BA61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558A9
Deuteranopia (green-blind)
#4866A3
Tritanopia (blue-blind)
#A54067
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12ba6;
/* rgb */ color: rgb(161, 43, 166);
/* oklch */ color: oklch(52.1% 0.205 326.2);
Tailwind
colors: {
  custom: {
    50: '#c171c1',
    500: '#a12ba6',
    950: '#000000',
  },
}
SCSS
$custom: #a12ba6;
$custom-light: #c171c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ba6",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 297.561,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.2052,
    "h": 326.2
  },
  "luminance": 0.12058
}

Semantic roles & 50–950 ramp

primary
#A12BA6
secondary
#6FC16B
accent
#E2464C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A12BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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