#7E1E9D#7E1E9D

#7E1E9D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.196 H 316.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7E1E9D
RGBrgb(126, 30, 157)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(19.7%, 80.9%, 0%, 38.4%)
CIE-LABlab(33.56, 57.49, -48.35)
CIE-LCHlch(33.56, 75.12, 319.94°)
OKLaboklab(45.31% 0.1412 -0.1364)
OKLCHoklch(45.31% 0.196 316)
XYZxyz(15.1533, 7.7991, 32.5989)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E9D #3D9D1E
analogous
#3F1E9D #7E1E9D #9D1E7D
triadic
#7E1E9D #9D7E1E #1E9D7E
tetradic
#7E1E9D #9D3F1E #3D9D1E #1E7D9D
square
#7E1E9D #9D3F1E #3D9D1E #1E7D9D
split-complementary
#7E1E9D #7D9D1E #1E9D3F
monochromatic
#2C0A36 #55146A #7E1E9D #A728D0 #BE57DF

Accessibility & contrast

On white

8.20
#7E1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E9D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E9D#FFFFFF#000000##FFFFFF
##7E1E9D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1B519A
Tritanopia (blue-blind)
#7C3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1e9d;
/* rgb */ color: rgb(126, 30, 157);
/* oklch */ color: oklch(45.3% 0.196 316.0);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7e1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e9d;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e9d",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 285.354,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.1963,
    "h": 316
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#7E1E9D
secondary
#6FC254
accent
#EB3D67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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