#A12F8D#A12F8D

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

Color values

HEX#A12F8D
RGBrgb(161, 47, 141)
HSLhsl(311, 55%, 41%)
HSVhsv(311, 71%, 63%)
CMYKcmyk(0%, 70.8%, 12.4%, 36.9%)
CIE-LABlab(40.47, 56.57, -27.26)
CIE-LCHlch(40.47, 62.79, 334.27°)
OKLaboklab(51.07% 0.1655 -0.0743)
OKLCHoklch(51.07% 0.181 335.8)
XYZxyz(20.5225, 11.5350, 26.3398)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12F8D #2FA143
analogous
#7C2FA1 #A12F8D #A12F54
triadic
#A12F8D #8DA12F #2F8DA1
tetradic
#A12F8D #A17C2F #2FA143 #2F54A1
square
#A12F8D #A17C2F #2FA143 #2F54A1
split-complementary
#A12F8D #54A12F #2FA17C
monochromatic
#42133A #722164 #A12F8D #C945B1 #D674C5

Accessibility & contrast

On white

6.35
#A12F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A12F8D
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12F8D#FFFFFF#000000##FFFFFF
##A12F8D1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305490
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#A9375A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12f8d;
/* rgb */ color: rgb(161, 47, 141);
/* oklch */ color: oklch(51.1% 0.181 335.8);
Tailwind
colors: {
  custom: {
    50: '#c072ae',
    500: '#a12f8d',
    950: '#000000',
  },
}
SCSS
$custom: #a12f8d;
$custom-light: #c072ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a12f8d",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 310.526,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51069,
    "c": 0.18142,
    "h": 335.8
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#A12F8D
secondary
#6EBE7C
accent
#DE644A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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