#A12FA7#A12FA7

#A12FA7 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.5% C 0.202 H 325.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#A12FA7
RGBrgb(161, 47, 167)
HSLhsl(297, 56%, 42%)
HSVhsv(297, 72%, 65%)
CMYKcmyk(3.6%, 71.9%, 0%, 34.5%)
CIE-LABlab(41.85, 60.82, -40.77)
CIE-LCHlch(41.85, 73.22, 326.17°)
OKLaboklab(52.51% 0.1668 -0.1133)
OKLCHoklch(52.51% 0.202 325.8)
XYZxyz(22.6890, 12.4016, 37.7504)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FA7 #35A72F
analogous
#652FA7 #A12FA7 #A72F71
triadic
#A12FA7 #A7A12F #2FA7A1
tetradic
#A12FA7 #A7652F #35A72F #2F71A7
square
#A12FA7 #A7652F #35A72F #2F71A7
split-complementary
#A12FA7 #71A72F #2FA765
monochromatic
#451447 #732277 #A12FA7 #C548CB #D478D9

Accessibility & contrast

On white

6.03
#A12FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#A12FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FA7
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FA7#FFFFFF#000000##FFFFFF
##A12FA71.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#4968A4
Tritanopia (blue-blind)
#A54368
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a12fa7;
/* rgb */ color: rgb(161, 47, 167);
/* oklch */ color: oklch(52.5% 0.202 325.8);
Tailwind
colors: {
  custom: {
    50: '#c073c2',
    500: '#a12fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a12fa7;
$custom-light: #c073c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fa7",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 297,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5251,
    "c": 0.20161,
    "h": 325.8
  },
  "luminance": 0.124
}

Semantic roles & 50–950 ramp

primary
#A12FA7
secondary
#75C171
accent
#DF4850
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A12FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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