#7E1E99#7E1E99

#7E1E99 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.193 H 317.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7E1E99
RGBrgb(126, 30, 153)
HSLhsl(287, 67%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(17.6%, 80.4%, 0%, 40%)
CIE-LABlab(33.27, 56.71, -46.37)
CIE-LCHlch(33.27, 73.26, 320.73°)
OKLaboklab(45.02% 0.1419 -0.1306)
OKLCHoklch(45.02% 0.193 317.4)
XYZxyz(14.8174, 7.6647, 30.8298)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E99 #39991E
analogous
#401E99 #7E1E99 #991E76
triadic
#7E1E99 #997E1E #1E997E
tetradic
#7E1E99 #99401E #39991E #1E7699
square
#7E1E99 #99401E #39991E #1E7699
split-complementary
#7E1E99 #76991E #1E9940
monochromatic
#2A0A33 #541466 #7E1E99 #A828CC #BF54DD

Accessibility & contrast

On white

8.29
#7E1E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E1E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E99
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E99#FFFFFF#000000##FFFFFF
##7E1E991.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#215196
Tritanopia (blue-blind)
#7D3A5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1e99;
/* rgb */ color: rgb(126, 30, 153);
/* oklch */ color: oklch(45.0% 0.193 317.4);
Tailwind
colors: {
  custom: {
    50: '#a766b8',
    500: '#7e1e99',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e99;
$custom-light: #a766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e99",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 286.829,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45018,
    "c": 0.19284,
    "h": 317.4
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#7E1E99
secondary
#6AC152
accent
#EA3E64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1E99

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

Preview Lab → · Contrast checker → · Palette generator →

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