#A12F8B#A12F8B

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

Color values

HEX#A12F8B
RGBrgb(161, 47, 139)
HSLhsl(312, 55%, 41%)
HSVhsv(312, 71%, 63%)
CMYKcmyk(0%, 70.8%, 13.7%, 36.9%)
CIE-LABlab(40.37, 56.26, -26.19)
CIE-LCHlch(40.37, 62.06, 335.04°)
OKLaboklab(50.97% 0.1653 -0.0712)
OKLCHoklch(50.97% 0.18 336.7)
XYZxyz(20.3750, 11.4760, 25.5631)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12F8B #2FA145
analogous
#7E2FA1 #A12F8B #A12F52
triadic
#A12F8B #8BA12F #2F8BA1
tetradic
#A12F8B #A17E2F #2FA145 #2F52A1
square
#A12F8B #A17E2F #2FA145 #2F52A1
split-complementary
#A12F8B #52A12F #2FA17E
monochromatic
#421339 #722162 #A12F8B #C945AF #D674C3

Accessibility & contrast

On white

6.37
#A12F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A12F8B
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12F8B#FFFFFF#000000##FFFFFF
##A12F8B1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548E
Deuteranopia (green-blind)
#586588
Tritanopia (blue-blind)
#A93659
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12f8b;
/* rgb */ color: rgb(161, 47, 139);
/* oklch */ color: oklch(51.0% 0.180 336.7);
Tailwind
colors: {
  custom: {
    50: '#c072ad',
    500: '#a12f8b',
    950: '#000000',
  },
}
SCSS
$custom: #a12f8b;
$custom-light: #c072ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a12f8b",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 311.579,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50968,
    "c": 0.17997,
    "h": 336.7
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#A12F8B
secondary
#6EBE7D
accent
#DE664A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A12F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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