#7A1A97#7A1A97

#7A1A97 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.193 H 316.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7A1A97
RGBrgb(122, 26, 151)
HSLhsl(286, 71%, 35%)
HSVhsv(286, 83%, 59%)
CMYKcmyk(19.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(32.06, 56.78, -47.15)
CIE-LCHlch(32.06, 73.81, 320.30°)
OKLaboklab(43.99% 0.1402 -0.133)
OKLCHoklch(43.99% 0.193 316.5)
XYZxyz(13.9805, 7.1113, 29.9084)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1A97 #37971A
analogous
#3C1A97 #7A1A97 #971A76
triadic
#7A1A97 #977A1A #1A977A
tetradic
#7A1A97 #973C1A #37971A #1A7697
square
#7A1A97 #973C1A #37971A #1A7697
split-complementary
#7A1A97 #76971A #1A973C
monochromatic
#26082F #501163 #7A1A97 #A423CB #BE4BE0

Accessibility & contrast

On white

8.67
#7A1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7A1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1A97
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1A97#FFFFFF#000000##FFFFFF
##7A1A971.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#194E94
Tritanopia (blue-blind)
#78385A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1a97;
/* rgb */ color: rgb(122, 26, 151);
/* oklch */ color: oklch(44.0% 0.193 316.5);
Tailwind
colors: {
  custom: {
    50: '#a564b6',
    500: '#7a1a97',
    950: '#000000',
  },
}
SCSS
$custom: #7a1a97;
$custom-light: #a564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1a97",
  "rgb": {
    "r": 122,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 286.08,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43989,
    "c": 0.19327,
    "h": 316.5
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#7A1A97
secondary
#66C24B
accent
#ED3A64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1A97

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

Preview Lab → · Contrast checker → · Palette generator →

#7A1A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva