#7E1986#7E1986

#7E1986 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.182 H 324.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E1986
RGBrgb(126, 25, 134)
HSLhsl(296, 69%, 31%)
HSVhsv(296, 81%, 53%)
CMYKcmyk(6%, 81.3%, 0%, 47.5%)
CIE-LABlab(31.47, 54.67, -37.57)
CIE-LCHlch(31.47, 66.34, 325.51°)
OKLaboklab(43.33% 0.1483 -0.1048)
OKLCHoklch(43.33% 0.182 324.7)
XYZxyz(13.2546, 6.8530, 23.1743)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1986 #218619
analogous
#471986 #7E1986 #861957
triadic
#7E1986 #867E19 #19867E
tetradic
#7E1986 #864719 #218619 #195786
square
#7E1986 #864719 #218619 #195786
split-complementary
#7E1986 #578619 #198647
monochromatic
#1D061F #4D0F52 #7E1986 #AE23BA #D03EDB

Accessibility & contrast

On white

8.86
#7E1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1986
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1986#FFFFFF#000000##FFFFFF
##7E19861.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#314E84
Tritanopia (blue-blind)
#812F50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1986;
/* rgb */ color: rgb(126, 25, 134);
/* oklch */ color: oklch(43.3% 0.182 324.7);
Tailwind
colors: {
  custom: {
    50: '#a764aa',
    500: '#7e1986',
    950: '#000000',
  },
}
SCSS
$custom: #7e1986;
$custom-light: #a764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1986",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 295.596,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43334,
    "c": 0.18156,
    "h": 324.7
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#7E1986
secondary
#4ABA41
accent
#EB3C49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1986

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

Preview Lab → · Contrast checker → · Palette generator →

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