#A12C98#A12C98

#A12C98 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.4% C 0.193 H 331.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A12C98
RGBrgb(161, 44, 152)
HSLhsl(305, 57%, 40%)
HSVhsv(305, 73%, 63%)
CMYKcmyk(0%, 72.7%, 5.6%, 36.9%)
CIE-LABlab(40.65, 59.36, -33.66)
CIE-LCHlch(40.65, 68.24, 330.45°)
OKLaboklab(51.38% 0.1695 -0.0926)
OKLCHoklch(51.38% 0.193 331.3)
XYZxyz(21.2661, 11.6471, 30.8277)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12C98 #2CA135
analogous
#6F2CA1 #A12C98 #A12C5E
triadic
#A12C98 #98A12C #2C98A1
tetradic
#A12C98 #A16F2C #2CA135 #2C5EA1
square
#A12C98 #A16F2C #2CA135 #2C5EA1
split-complementary
#A12C98 #5EA12C #2CA16F
monochromatic
#41123D #711F6B #A12C98 #CB40C0 #D870D0

Accessibility & contrast

On white

6.31
#A12C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A12C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12C98
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12C98#FFFFFF#000000##FFFFFF
##A12C981.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a12c98;
/* rgb */ color: rgb(161, 44, 152);
/* oklch */ color: oklch(51.4% 0.193 331.3);
Tailwind
colors: {
  custom: {
    50: '#c071b7',
    500: '#a12c98',
    950: '#000000',
  },
}
SCSS
$custom: #a12c98;
$custom-light: #c071b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12c98",
  "rgb": {
    "r": 161,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 304.615,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51382,
    "c": 0.19318,
    "h": 331.3
  },
  "luminance": 0.11645
}

Semantic roles & 50–950 ramp

primary
#A12C98
secondary
#6ABF70
accent
#E05347
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12C98

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

Preview Lab → · Contrast checker → · Palette generator →

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