#7E1E8B#7E1E8B

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

Color values

HEX#7E1E8B
RGBrgb(126, 30, 139)
HSLhsl(293, 64%, 33%)
HSVhsv(293, 78%, 55%)
CMYKcmyk(9.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(32.32, 54.05, -39.31)
CIE-LCHlch(32.32, 66.83, 323.98°)
OKLaboklab(44.04% 0.1437 -0.1099)
OKLCHoklch(44.04% 0.181 322.6)
XYZxyz(13.7282, 7.2291, 25.0933)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E8B #2B8B1E
analogous
#471E8B #7E1E8B #8B1E61
triadic
#7E1E8B #8B7E1E #1E8B7E
tetradic
#7E1E8B #8B471E #2B8B1E #1E618B
square
#7E1E8B #8B471E #2B8B1E #1E618B
split-complementary
#7E1E8B #618B1E #1E8B47
monochromatic
#230826 #501359 #7E1E8B #AC29BD #C74BD8

Accessibility & contrast

On white

8.59
#7E1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E8B
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E8B#FFFFFF#000000##FFFFFF
##7E1E8B1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2F5089
Tritanopia (blue-blind)
#803454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1e8b;
/* rgb */ color: rgb(126, 30, 139);
/* oklch */ color: oklch(44.0% 0.181 322.6);
Tailwind
colors: {
  custom: {
    50: '#a766ad',
    500: '#7e1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e8b;
$custom-light: #a766ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e8b",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 292.844,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44042,
    "c": 0.18088,
    "h": 322.6
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#7E1E8B
secondary
#58BB4A
accent
#E74054
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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