#7E1A97#7E1A97

#7E1A97 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.195 H 318.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7E1A97
RGBrgb(126, 26, 151)
HSLhsl(288, 71%, 35%)
HSVhsv(288, 83%, 59%)
CMYKcmyk(16.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(32.72, 57.52, -46.05)
CIE-LCHlch(32.72, 73.68, 321.32°)
OKLaboklab(44.58% 0.1453 -0.1296)
OKLCHoklch(44.58% 0.195 318.3)
XYZxyz(14.5587, 7.4095, 29.9355)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A97 #33971A
analogous
#401A97 #7E1A97 #971A72
triadic
#7E1A97 #977E1A #1A977E
tetradic
#7E1A97 #97401A #33971A #1A7297
square
#7E1A97 #97401A #33971A #1A7297
split-complementary
#7E1A97 #72971A #1A9740
monochromatic
#27082F #521163 #7E1A97 #AA23CB #C24BE0

Accessibility & contrast

On white

8.46
#7E1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A97
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A97#FFFFFF#000000##FFFFFF
##7E1A971.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#7D385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1a97;
/* rgb */ color: rgb(126, 26, 151);
/* oklch */ color: oklch(44.6% 0.195 318.3);
Tailwind
colors: {
  custom: {
    50: '#a865b6',
    500: '#7e1a97',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a97;
$custom-light: #a865b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a97",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 288,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44584,
    "c": 0.1947,
    "h": 318.3
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#7E1A97
secondary
#63C24B
accent
#ED3A5E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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