#A12D98#A12D98

#A12D98 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.192 H 331.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A12D98
RGBrgb(161, 45, 152)
HSLhsl(305, 56%, 40%)
HSVhsv(305, 72%, 63%)
CMYKcmyk(0%, 72%, 5.6%, 36.9%)
CIE-LABlab(40.77, 59.02, -33.46)
CIE-LCHlch(40.77, 67.84, 330.45°)
OKLaboklab(51.47% 0.1685 -0.0921)
OKLCHoklch(51.47% 0.192 331.3)
XYZxyz(21.3038, 11.7225, 30.8403)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12D98 #2DA136
analogous
#702DA1 #A12D98 #A12D5E
triadic
#A12D98 #98A12D #2D98A1
tetradic
#A12D98 #A1702D #2DA136 #2D5EA1
square
#A12D98 #A1702D #2DA136 #2D5EA1
split-complementary
#A12D98 #5EA12D #2DA170
monochromatic
#41123E #71206B #A12D98 #CA41BF #D771CF

Accessibility & contrast

On white

6.28
#A12D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A12D98
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12D98#FFFFFF#000000##FFFFFF
##A12D981.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A83A5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a12d98;
/* rgb */ color: rgb(161, 45, 152);
/* oklch */ color: oklch(51.5% 0.192 331.3);
Tailwind
colors: {
  custom: {
    50: '#c071b7',
    500: '#a12d98',
    950: '#000000',
  },
}
SCSS
$custom: #a12d98;
$custom-light: #c071b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12d98",
  "rgb": {
    "r": 161,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 304.655,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.19204,
    "h": 331.3
  },
  "luminance": 0.11721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A12D98

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

Preview Lab → · Contrast checker → · Palette generator →

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