#A12BA5#A12BA5

#A12BA5 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.204 H 326.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A12BA5
RGBrgb(161, 43, 165)
HSLhsl(298, 59%, 41%)
HSVhsv(298, 74%, 65%)
CMYKcmyk(2.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(41.25, 61.85, -40.52)
CIE-LCHlch(41.25, 73.94, 326.77°)
OKLaboklab(52.05% 0.1706 -0.1125)
OKLCHoklch(52.05% 0.204 326.6)
XYZxyz(22.3530, 12.0230, 36.7333)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12BA5 #2FA52B
analogous
#642BA5 #A12BA5 #A52B6C
triadic
#A12BA5 #A5A12B #2BA5A1
tetradic
#A12BA5 #A5642B #2FA52B #2B6CA5
square
#A12BA5 #A5642B #2FA52B #2B6CA5
split-complementary
#A12BA5 #6CA52B #2BA564
monochromatic
#421244 #721E74 #A12BA5 #C940CD #D671DA

Accessibility & contrast

On white

6.17
#A12BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A12BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12BA5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12BA5#FFFFFF#000000##FFFFFF
##A12BA51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0958A8
Deuteranopia (green-blind)
#4966A2
Tritanopia (blue-blind)
#A53F66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a12ba5;
/* rgb */ color: rgb(161, 43, 165);
/* oklch */ color: oklch(52.0% 0.204 326.6);
Tailwind
colors: {
  custom: {
    50: '#c071c0',
    500: '#a12ba5',
    950: '#000000',
  },
}
SCSS
$custom: #a12ba5;
$custom-light: #c071c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ba5",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 298.033,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52047,
    "c": 0.2044,
    "h": 326.6
  },
  "luminance": 0.12021
}

Semantic roles & 50–950 ramp

primary
#A12BA5
secondary
#6EC16B
accent
#E2464B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A12BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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