#7E1E8A#7E1E8A

#7E1E8A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.180 H 323.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7E1E8A
RGBrgb(126, 30, 138)
HSLhsl(293, 64%, 33%)
HSVhsv(293, 78%, 54%)
CMYKcmyk(8.7%, 78.3%, 0%, 45.9%)
CIE-LABlab(32.26, 53.87, -38.79)
CIE-LCHlch(32.26, 66.38, 324.24°)
OKLaboklab(43.97% 0.1437 -0.1084)
OKLCHoklch(43.97% 0.18 323)
XYZxyz(13.6555, 7.2000, 24.7103)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E8A #2A8A1E
analogous
#481E8A #7E1E8A #8A1E60
triadic
#7E1E8A #8A7E1E #1E8A7E
tetradic
#7E1E8A #8A481E #2A8A1E #1E608A
square
#7E1E8A #8A481E #2A8A1E #1E608A
split-complementary
#7E1E8A #608A1E #1E8A48
monochromatic
#220825 #501358 #7E1E8A #AC29BC #C84BD8

Accessibility & contrast

On white

8.61
#7E1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E8A
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E8A#FFFFFF#000000##FFFFFF
##7E1E8A1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#305088
Tritanopia (blue-blind)
#803353
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1e8a;
/* rgb */ color: rgb(126, 30, 138);
/* oklch */ color: oklch(44.0% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#a766ad',
    500: '#7e1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e8a;
$custom-light: #a766ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e8a",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 293.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43975,
    "c": 0.18004,
    "h": 323
  },
  "luminance": 0.07199
}

Semantic roles & 50–950 ramp

primary
#7E1E8A
secondary
#56BA4A
accent
#E74153
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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