#7E1A8D#7E1A8D

#7E1A8D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.186 H 321.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7E1A8D
RGBrgb(126, 26, 141)
HSLhsl(292, 69%, 33%)
HSVhsv(292, 82%, 55%)
CMYKcmyk(10.6%, 81.6%, 0%, 44.7%)
CIE-LABlab(32.03, 55.65, -41.01)
CIE-LCHlch(32.03, 69.13, 323.61°)
OKLaboklab(43.88% 0.1468 -0.1149)
OKLCHoklch(43.88% 0.186 321.9)
XYZxyz(13.7808, 7.0983, 25.8384)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A8D #298D1A
analogous
#451A8D #7E1A8D #8D1A62
triadic
#7E1A8D #8D7E1A #1A8D7E
tetradic
#7E1A8D #8D451A #298D1A #1A628D
square
#7E1A8D #8D451A #298D1A #1A628D
split-complementary
#7E1A8D #628D1A #1A8D45
monochromatic
#220726 #501059 #7E1A8D #AC24C1 #C945DD

Accessibility & contrast

On white

8.68
#7E1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A8D
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A8D#FFFFFF#000000##FFFFFF
##7E1A8D1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2C4F8A
Tritanopia (blue-blind)
#7F3354
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1a8d;
/* rgb */ color: rgb(126, 26, 141);
/* oklch */ color: oklch(43.9% 0.186 321.9);
Tailwind
colors: {
  custom: {
    50: '#a764af',
    500: '#7e1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a8d;
$custom-light: #a764af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a8d",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 292.174,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43877,
    "c": 0.18637,
    "h": 321.9
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

primary
#7E1A8D
secondary
#55BE45
accent
#EC3C53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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