#A12E8D#A12E8D

#A12E8D is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.183 H 335.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A12E8D
RGBrgb(161, 46, 141)
HSLhsl(310, 56%, 41%)
HSVhsv(310, 71%, 63%)
CMYKcmyk(0%, 71.4%, 12.4%, 36.9%)
CIE-LABlab(40.34, 56.93, -27.46)
CIE-LCHlch(40.34, 63.21, 334.25°)
OKLaboklab(50.98% 0.1666 -0.0748)
OKLCHoklch(50.98% 0.183 335.8)
XYZxyz(20.4829, 11.4559, 26.3266)
Luminance0.1145 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12E8D #2EA142
analogous
#7B2EA1 #A12E8D #A12E53
triadic
#A12E8D #8DA12E #2E8DA1
tetradic
#A12E8D #A17B2E #2EA142 #2E53A1
square
#A12E8D #A17B2E #2EA142 #2E53A1
split-complementary
#A12E8D #53A12E #2EA17B
monochromatic
#42133A #712063 #A12E8D #C943B2 #D773C5

Accessibility & contrast

On white

6.38
#A12E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A12E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12E8D
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12E8D#FFFFFF#000000##FFFFFF
##A12E8D1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#A9365A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12e8d;
/* rgb */ color: rgb(161, 46, 141);
/* oklch */ color: oklch(51.0% 0.183 335.8);
Tailwind
colors: {
  custom: {
    50: '#c071ae',
    500: '#a12e8d',
    950: '#000000',
  },
}
SCSS
$custom: #a12e8d;
$custom-light: #c071ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a12e8d",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 310.435,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50976,
    "c": 0.18264,
    "h": 335.8
  },
  "luminance": 0.11454
}

Semantic roles & 50–950 ramp

primary
#A12E8D
secondary
#6CBE7B
accent
#DF6349
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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