#A12897#A12897

#A12897 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 51.0% C 0.197 H 331.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#A12897
RGBrgb(161, 40, 151)
HSLhsl(305, 60%, 39%)
HSVhsv(305, 75%, 63%)
CMYKcmyk(0%, 75.2%, 6.2%, 36.9%)
CIE-LABlab(40.13, 60.53, -33.87)
CIE-LCHlch(40.13, 69.36, 330.77°)
OKLaboklab(50.99% 0.1733 -0.0932)
OKLCHoklch(50.99% 0.197 331.7)
XYZxyz(21.0427, 11.3307, 30.3509)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12897 #28A132
analogous
#6F28A1 #A12897 #A1285A
triadic
#A12897 #97A128 #2897A1
tetradic
#A12897 #A16F28 #28A132 #285AA1
square
#A12897 #A16F28 #28A132 #285AA1
split-complementary
#A12897 #5AA128 #28A16F
monochromatic
#3F103B #701C69 #A12897 #CE39C1 #DA6AD1

Accessibility & contrast

On white

6.43
#A12897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A12897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12897
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12897#FFFFFF#000000##FFFFFF
##A128971.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#4F6494
Tritanopia (blue-blind)
#A8365D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12897;
/* rgb */ color: rgb(161, 40, 151);
/* oklch */ color: oklch(51.0% 0.197 331.7);
Tailwind
colors: {
  custom: {
    50: '#c06fb6',
    500: '#a12897',
    950: '#000000',
  },
}
SCSS
$custom: #a12897;
$custom-light: #c06fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a12897",
  "rgb": {
    "r": 161,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 304.959,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50993,
    "c": 0.1968,
    "h": 331.7
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#A12897
secondary
#65C06C
accent
#E35244
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12897

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

Preview Lab → · Contrast checker → · Palette generator →

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