#7E1E87#7E1E87

#7E1E87 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.178 H 324.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7E1E87
RGBrgb(126, 30, 135)
HSLhsl(295, 64%, 32%)
HSVhsv(295, 78%, 53%)
CMYKcmyk(6.7%, 77.8%, 0%, 47.1%)
CIE-LABlab(32.07, 53.32, -37.24)
CIE-LCHlch(32.07, 65.03, 325.07°)
OKLaboklab(43.78% 0.144 -0.1039)
OKLCHoklch(43.78% 0.178 324.2)
XYZxyz(13.4413, 7.1143, 23.5822)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E87 #27871E
analogous
#491E87 #7E1E87 #871E5C
triadic
#7E1E87 #877E1E #1E877E
tetradic
#7E1E87 #87491E #27871E #1E5C87
square
#7E1E87 #87491E #27871E #1E5C87
split-complementary
#7E1E87 #5C871E #1E8749
monochromatic
#210823 #4F1355 #7E1E87 #AD29B9 #CA49D7

Accessibility & contrast

On white

8.67
#7E1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1E87
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E87#FFFFFF#000000##FFFFFF
##7E1E871.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#803252
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1e87;
/* rgb */ color: rgb(126, 30, 135);
/* oklch */ color: oklch(43.8% 0.178 324.2);
Tailwind
colors: {
  custom: {
    50: '#a766aa',
    500: '#7e1e87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e87;
$custom-light: #a766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e87",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 294.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43777,
    "c": 0.17752,
    "h": 324.2
  },
  "luminance": 0.07113
}

Semantic roles & 50–950 ramp

primary
#7E1E87
secondary
#52B948
accent
#E7414F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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