#A12FA5#A12FA5

#A12FA5 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.4% C 0.200 H 326.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#A12FA5
RGBrgb(161, 47, 165)
HSLhsl(298, 56%, 42%)
HSVhsv(298, 72%, 65%)
CMYKcmyk(2.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(41.73, 60.48, -39.75)
CIE-LCHlch(41.73, 72.38, 326.68°)
OKLaboklab(52.39% 0.1668 -0.1103)
OKLCHoklch(52.39% 0.2 326.5)
XYZxyz(22.5056, 12.3282, 36.7842)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FA5 #33A52F
analogous
#662FA5 #A12FA5 #A52F6E
triadic
#A12FA5 #A5A12F #2FA5A1
tetradic
#A12FA5 #A5662F #33A52F #2F6EA5
square
#A12FA5 #A5662F #33A52F #2F6EA5
split-complementary
#A12FA5 #6EA52F #2FA566
monochromatic
#441446 #732175 #A12FA5 #C647CB #D576D8

Accessibility & contrast

On white

6.06
#A12FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A12FA5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FA5#FFFFFF#000000##FFFFFF
##A12FA51.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A8
Deuteranopia (green-blind)
#4B67A2
Tritanopia (blue-blind)
#A54267
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a12fa5;
/* rgb */ color: rgb(161, 47, 165);
/* oklch */ color: oklch(52.4% 0.200 326.5);
Tailwind
colors: {
  custom: {
    50: '#c073c0',
    500: '#a12fa5',
    950: '#000000',
  },
}
SCSS
$custom: #a12fa5;
$custom-light: #c073c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fa5",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 297.966,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52391,
    "c": 0.19998,
    "h": 326.5
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#A12FA5
secondary
#72C070
accent
#DF494E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A12FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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