#A12F8A#A12F8A

#A12F8A is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.179 H 337.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A12F8A
RGBrgb(161, 47, 138)
HSLhsl(312, 55%, 41%)
HSVhsv(312, 71%, 63%)
CMYKcmyk(0%, 70.8%, 14.3%, 36.9%)
CIE-LABlab(40.32, 56.11, -25.65)
CIE-LCHlch(40.32, 61.70, 335.43°)
OKLaboklab(50.92% 0.1652 -0.0697)
OKLCHoklch(50.92% 0.179 337.1)
XYZxyz(20.3023, 11.4469, 25.1801)
Luminance0.1144 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12F8A #2FA146
analogous
#7F2FA1 #A12F8A #A12F51
triadic
#A12F8A #8AA12F #2F8AA1
tetradic
#A12F8A #A17F2F #2FA146 #2F51A1
square
#A12F8A #A17F2F #2FA146 #2F51A1
split-complementary
#A12F8A #51A12F #2FA17F
monochromatic
#421339 #722161 #A12F8A #C945AE #D674C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A12F8A#FFFFFF#000000##FFFFFF
##A12F8A1.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)
#32548D
Deuteranopia (green-blind)
#586587
Tritanopia (blue-blind)
#AA3558
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12f8a;
/* rgb */ color: rgb(161, 47, 138);
/* oklch */ color: oklch(50.9% 0.179 337.1);
Tailwind
colors: {
  custom: {
    50: '#c072ac',
    500: '#a12f8a',
    950: '#000000',
  },
}
SCSS
$custom: #a12f8a;
$custom-light: #c072ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a12f8a",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 312.105,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.17926,
    "h": 337.1
  },
  "luminance": 0.11445
}

Semantic roles & 50–950 ramp

primary
#A12F8A
secondary
#6EBE7E
accent
#DE684A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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