#A12D97#A12D97

#A12D97 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.191 H 331.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#A12D97
RGBrgb(161, 45, 151)
HSLhsl(305, 56%, 40%)
HSVhsv(305, 72%, 63%)
CMYKcmyk(0%, 72%, 6.2%, 36.9%)
CIE-LABlab(40.72, 58.86, -32.94)
CIE-LCHlch(40.72, 67.45, 330.76°)
OKLaboklab(51.42% 0.1685 -0.0906)
OKLCHoklch(51.42% 0.191 331.7)
XYZxyz(21.2223, 11.6899, 30.4108)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12D97 #2DA137
analogous
#712DA1 #A12D97 #A12D5D
triadic
#A12D97 #97A12D #2D97A1
tetradic
#A12D97 #A1712D #2DA137 #2D5DA1
square
#A12D97 #A1712D #2DA137 #2D5DA1
split-complementary
#A12D97 #5DA12D #2DA171
monochromatic
#41123D #71206A #A12D97 #CA41BE #D771CF

Accessibility & contrast

On white

6.29
#A12D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A12D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12D97
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12D97#FFFFFF#000000##FFFFFF
##A12D971.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#516694
Tritanopia (blue-blind)
#A83A5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a12d97;
/* rgb */ color: rgb(161, 45, 151);
/* oklch */ color: oklch(51.4% 0.191 331.7);
Tailwind
colors: {
  custom: {
    50: '#c071b6',
    500: '#a12d97',
    950: '#000000',
  },
}
SCSS
$custom: #a12d97;
$custom-light: #c071b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a12d97",
  "rgb": {
    "r": 161,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 305.172,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51415,
    "c": 0.19128,
    "h": 331.7
  },
  "luminance": 0.11688
}

Semantic roles & 50–950 ramp

primary
#A12D97
secondary
#6BBF72
accent
#E05548
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12D97

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

Preview Lab → · Contrast checker → · Palette generator →

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