#7E1E9E#7E1E9E

#7E1E9E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.197 H 315.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7E1E9E
RGBrgb(126, 30, 158)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(20.3%, 81%, 0%, 38%)
CIE-LABlab(33.63, 57.69, -48.84)
CIE-LCHlch(33.63, 75.59, 319.75°)
OKLaboklab(45.38% 0.141 -0.1379)
OKLCHoklch(45.38% 0.197 315.6)
XYZxyz(15.2390, 7.8334, 33.0504)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E9E #3E9E1E
analogous
#3E1E9E #7E1E9E #9E1E7E
triadic
#7E1E9E #9E7E1E #1E9E7E
tetradic
#7E1E9E #9E3E1E #3E9E1E #1E7E9E
square
#7E1E9E #9E3E1E #3E9E1E #1E7E9E
split-complementary
#7E1E9E #7E9E1E #1E9E3E
monochromatic
#2C0A37 #55146B #7E1E9E #A728D1 #BD57DF

Accessibility & contrast

On white

8.18
#7E1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E1E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E9E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E9E#FFFFFF#000000##FFFFFF
##7E1E9E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#19529B
Tritanopia (blue-blind)
#7C3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1e9e;
/* rgb */ color: rgb(126, 30, 158);
/* oklch */ color: oklch(45.4% 0.197 315.6);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7e1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e9e;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e9e",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 285,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45383,
    "c": 0.19717,
    "h": 315.6
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#7E1E9E
secondary
#70C355
accent
#EB3D68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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