#A12B98#A12B98

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

Color values

HEX#A12B98
RGBrgb(161, 43, 152)
HSLhsl(305, 58%, 40%)
HSVhsv(305, 73%, 63%)
CMYKcmyk(0%, 73.3%, 5.6%, 36.9%)
CIE-LABlab(40.53, 59.70, -33.84)
CIE-LCHlch(40.53, 68.63, 330.45°)
OKLaboklab(51.3% 0.1705 -0.0932)
OKLCHoklch(51.3% 0.194 331.3)
XYZxyz(21.2293, 11.5735, 30.8155)
Luminance0.1157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12B98 #2BA134
analogous
#6F2BA1 #A12B98 #A12B5D
triadic
#A12B98 #98A12B #2B98A1
tetradic
#A12B98 #A16F2B #2BA134 #2B5DA1
square
#A12B98 #A16F2B #2BA134 #2B5DA1
split-complementary
#A12B98 #5DA12B #2BA16F
monochromatic
#40113D #711E6A #A12B98 #CB3EC1 #D86ED0

Accessibility & contrast

On white

6.34
#A12B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A12B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12B98
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12B98#FFFFFF#000000##FFFFFF
##A12B981.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A8395F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a12b98;
/* rgb */ color: rgb(161, 43, 152);
/* oklch */ color: oklch(51.3% 0.194 331.3);
Tailwind
colors: {
  custom: {
    50: '#c070b7',
    500: '#a12b98',
    950: '#000000',
  },
}
SCSS
$custom: #a12b98;
$custom-light: #c070b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12b98",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 304.576,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.51296,
    "c": 0.19431,
    "h": 331.3
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#A12B98
secondary
#69BF6F
accent
#E15247
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12B98

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

Preview Lab → · Contrast checker → · Palette generator →

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