#A12F97#A12F97

#A12F97 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.189 H 331.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A12F97
RGBrgb(161, 47, 151)
HSLhsl(305, 55%, 41%)
HSVhsv(305, 71%, 63%)
CMYKcmyk(0%, 70.8%, 6.2%, 36.9%)
CIE-LABlab(40.97, 58.14, -32.55)
CIE-LCHlch(40.97, 66.63, 330.76°)
OKLaboklab(51.6% 0.1664 -0.0895)
OKLCHoklch(51.6% 0.189 331.7)
XYZxyz(21.3004, 11.8462, 30.4368)
Luminance0.1184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12F97 #2FA139
analogous
#722FA1 #A12F97 #A12F5E
triadic
#A12F97 #97A12F #2F97A1
tetradic
#A12F97 #A1722F #2FA139 #2F5EA1
square
#A12F97 #A1722F #2FA139 #2F5EA1
split-complementary
#A12F97 #5EA12F #2FA172
monochromatic
#42133E #72216B #A12F97 #C945BD #D674CE

Accessibility & contrast

On white

6.23
#A12F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A12F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12F97
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12F97#FFFFFF#000000##FFFFFF
##A12F971.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#526694
Tritanopia (blue-blind)
#A83B5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12f97;
/* rgb */ color: rgb(161, 47, 151);
/* oklch */ color: oklch(51.6% 0.189 331.7);
Tailwind
colors: {
  custom: {
    50: '#c072b6',
    500: '#a12f97',
    950: '#000000',
  },
}
SCSS
$custom: #a12f97;
$custom-light: #c072b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a12f97",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 305.263,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51596,
    "c": 0.18892,
    "h": 331.7
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

primary
#A12F97
secondary
#6EBE75
accent
#DE574A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A12F97

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

Preview Lab → · Contrast checker → · Palette generator →

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