#A12798#A12798

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

Color values

HEX#A12798
RGBrgb(161, 39, 152)
HSLhsl(304, 61%, 39%)
HSVhsv(304, 76%, 63%)
CMYKcmyk(0%, 75.8%, 5.6%, 36.9%)
CIE-LABlab(40.08, 61.00, -34.56)
CIE-LCHlch(40.08, 70.11, 330.46°)
OKLaboklab(50.97% 0.1743 -0.0952)
OKLCHoklch(50.97% 0.199 331.3)
XYZxyz(21.0910, 11.2968, 30.7694)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12798 #27A130
analogous
#6D27A1 #A12798 #A1275B
triadic
#A12798 #98A127 #2798A1
tetradic
#A12798 #A16D27 #27A130 #275BA1
square
#A12798 #A16D27 #27A130 #275BA1
split-complementary
#A12798 #5BA127 #27A16D
monochromatic
#3E0F3B #701B69 #A12798 #CE37C3 #DA68D2

Accessibility & contrast

On white

6.44
#A12798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A12798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12798
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12798#FFFFFF#000000##FFFFFF
##A127981.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C549B
Deuteranopia (green-blind)
#4E6495
Tritanopia (blue-blind)
#A8365E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a12798;
/* rgb */ color: rgb(161, 39, 152);
/* oklch */ color: oklch(51.0% 0.199 331.3);
Tailwind
colors: {
  custom: {
    50: '#c16fb7',
    500: '#a12798',
    950: '#000000',
  },
}
SCSS
$custom: #a12798;
$custom-light: #c16fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12798",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 304.426,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50971,
    "c": 0.19858,
    "h": 331.3
  },
  "luminance": 0.11295
}

Semantic roles & 50–950 ramp

primary
#A12798
secondary
#63C06A
accent
#E45044
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12798

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

Preview Lab → · Contrast checker → · Palette generator →

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