#7E1A9E#7E1A9E

#7E1A9E is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.201 H 315.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1A9E
RGBrgb(126, 26, 158)
HSLhsl(285, 72%, 36%)
HSVhsv(285, 84%, 62%)
CMYKcmyk(20.3%, 83.5%, 0%, 38%)
CIE-LABlab(33.23, 58.87, -49.49)
CIE-LCHlch(33.23, 76.91, 319.95°)
OKLaboklab(45.1% 0.1439 -0.1398)
OKLCHoklch(45.1% 0.201 315.8)
XYZxyz(15.1441, 7.6436, 33.0188)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A9E #3A9E1A
analogous
#3C1A9E #7E1A9E #9E1A7C
triadic
#7E1A9E #9E7E1A #1A9E7E
tetradic
#7E1A9E #9E3C1A #3A9E1A #1A7C9E
square
#7E1A9E #9E3C1A #3A9E1A #1A7C9E
split-complementary
#7E1A9E #7C9E1A #1A9E3C
monochromatic
#2A0935 #541169 #7E1A9E #A823D3 #BF50E2

Accessibility & contrast

On white

8.30
#7E1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A9E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A9E#FFFFFF#000000##FFFFFF
##7E1A9E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#15519B
Tritanopia (blue-blind)
#7C3B5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1a9e;
/* rgb */ color: rgb(126, 26, 158);
/* oklch */ color: oklch(45.1% 0.201 315.8);
Tailwind
colors: {
  custom: {
    50: '#a865bb',
    500: '#7e1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a9e;
$custom-light: #a865bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a9e",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 285.455,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.451,
    "c": 0.20061,
    "h": 315.8
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#7E1A9E
secondary
#6CC54F
accent
#EE3965
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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