#A12A98#A12A98

#A12A98 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.195 H 331.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#A12A98
RGBrgb(161, 42, 152)
HSLhsl(305, 59%, 40%)
HSVhsv(305, 74%, 63%)
CMYKcmyk(0%, 73.9%, 5.6%, 36.9%)
CIE-LABlab(40.41, 60.04, -34.03)
CIE-LCHlch(40.41, 69.01, 330.45°)
OKLaboklab(51.21% 0.1715 -0.0937)
OKLCHoklch(51.21% 0.195 331.3)
XYZxyz(21.1934, 11.5017, 30.8035)
Luminance0.1150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12A98 #2AA133
analogous
#6F2AA1 #A12A98 #A12A5C
triadic
#A12A98 #98A12A #2A98A1
tetradic
#A12A98 #A16F2A #2AA133 #2A5CA1
square
#A12A98 #A16F2A #2AA133 #2A5CA1
split-complementary
#A12A98 #5CA12A #2AA16F
monochromatic
#40113C #701D6A #A12A98 #CC3CC1 #D96DD1

Accessibility & contrast

On white

6.36
#A12A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A12A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12A98
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12A98#FFFFFF#000000##FFFFFF
##A12A981.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A8385E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12a98;
/* rgb */ color: rgb(161, 42, 152);
/* oklch */ color: oklch(51.2% 0.195 331.3);
Tailwind
colors: {
  custom: {
    50: '#c070b7',
    500: '#a12a98',
    950: '#000000',
  },
}
SCSS
$custom: #a12a98;
$custom-light: #c070b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12a98",
  "rgb": {
    "r": 161,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 304.538,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51212,
    "c": 0.19541,
    "h": 331.3
  },
  "luminance": 0.115
}

Semantic roles & 50–950 ramp

primary
#A12A98
secondary
#67C06E
accent
#E25246
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12A98

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

Preview Lab → · Contrast checker → · Palette generator →

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