#A12FA6#A12FA6

#A12FA6 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.4% C 0.201 H 326.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#A12FA6
RGBrgb(161, 47, 166)
HSLhsl(297, 56%, 42%)
HSVhsv(297, 72%, 65%)
CMYKcmyk(3%, 71.7%, 0%, 34.9%)
CIE-LABlab(41.79, 60.65, -40.26)
CIE-LCHlch(41.79, 72.80, 326.42°)
OKLaboklab(52.45% 0.1668 -0.1118)
OKLCHoklch(52.45% 0.201 326.2)
XYZxyz(22.5970, 12.3648, 37.2654)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FA6 #34A62F
analogous
#662FA6 #A12FA6 #A62F70
triadic
#A12FA6 #A6A12F #2FA6A1
tetradic
#A12FA6 #A6662F #34A62F #2F70A6
square
#A12FA6 #A6662F #34A62F #2F70A6
split-complementary
#A12FA6 #70A62F #2FA666
monochromatic
#441447 #732176 #A12FA6 #C547CB #D477D8

Accessibility & contrast

On white

6.05
#A12FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A12FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FA6
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FA6#FFFFFF#000000##FFFFFF
##A12FA61.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A9
Deuteranopia (green-blind)
#4A67A3
Tritanopia (blue-blind)
#A54268
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a12fa6;
/* rgb */ color: rgb(161, 47, 166);
/* oklch */ color: oklch(52.4% 0.201 326.2);
Tailwind
colors: {
  custom: {
    50: '#c073c1',
    500: '#a12fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a12fa6;
$custom-light: #c073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fa6",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 297.479,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5245,
    "c": 0.2008,
    "h": 326.2
  },
  "luminance": 0.12363
}

Semantic roles & 50–950 ramp

primary
#A12FA6
secondary
#74C170
accent
#DF494F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A12FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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