#A12797#A12797

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

Color values

HEX#A12797
RGBrgb(161, 39, 151)
HSLhsl(305, 61%, 39%)
HSVhsv(305, 76%, 63%)
CMYKcmyk(0%, 75.8%, 6.2%, 36.9%)
CIE-LABlab(40.02, 60.84, -34.04)
CIE-LCHlch(40.02, 69.72, 330.77°)
OKLaboklab(50.92% 0.1742 -0.0937)
OKLCHoklch(50.92% 0.198 331.7)
XYZxyz(21.0094, 11.2642, 30.3398)
Luminance0.1126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12797 #27A131
analogous
#6E27A1 #A12797 #A1275A
triadic
#A12797 #97A127 #2797A1
tetradic
#A12797 #A16E27 #27A131 #275AA1
square
#A12797 #A16E27 #27A131 #275AA1
split-complementary
#A12797 #5AA127 #27A16E
monochromatic
#3E0F3B #701B69 #A12797 #CE37C2 #DA68D1

Accessibility & contrast

On white

6.46
#A12797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A12797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12797
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12797#FFFFFF#000000##FFFFFF
##A127971.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a12797;
/* rgb */ color: rgb(161, 39, 151);
/* oklch */ color: oklch(50.9% 0.198 331.7);
Tailwind
colors: {
  custom: {
    50: '#c16fb6',
    500: '#a12797',
    950: '#000000',
  },
}
SCSS
$custom: #a12797;
$custom-light: #c16fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a12797",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 304.918,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50915,
    "c": 0.19784,
    "h": 331.7
  },
  "luminance": 0.11262
}

Semantic roles & 50–950 ramp

primary
#A12797
secondary
#63C06B
accent
#E45144
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12797

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

Preview Lab → · Contrast checker → · Palette generator →

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