#7E1886#7E1886

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

Color values

HEX#7E1886
RGBrgb(126, 24, 134)
HSLhsl(296, 70%, 31%)
HSVhsv(296, 82%, 53%)
CMYKcmyk(6%, 82.1%, 0%, 47.5%)
CIE-LABlab(31.37, 54.96, -37.72)
CIE-LCHlch(31.37, 66.66, 325.53°)
OKLaboklab(43.27% 0.149 -0.1052)
OKLCHoklch(43.27% 0.182 324.8)
XYZxyz(13.2336, 6.8110, 23.1673)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1886 #208618
analogous
#471886 #7E1886 #861857
triadic
#7E1886 #867E18 #18867E
tetradic
#7E1886 #864718 #208618 #185786
square
#7E1886 #864718 #208618 #185786
split-complementary
#7E1886 #578618 #188647
monochromatic
#1C051E #4D0F52 #7E1886 #AF21BA #D03CDC

Accessibility & contrast

On white

8.89
#7E1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1886
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1886#FFFFFF#000000##FFFFFF
##7E18861.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1886;
/* rgb */ color: rgb(126, 24, 134);
/* oklch */ color: oklch(43.3% 0.182 324.8);
Tailwind
colors: {
  custom: {
    50: '#a763aa',
    500: '#7e1886',
    950: '#000000',
  },
}
SCSS
$custom: #7e1886;
$custom-light: #a763aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1886",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 295.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43265,
    "c": 0.18246,
    "h": 324.8
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#7E1886
secondary
#49BA40
accent
#EC3B48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1886

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

Preview Lab → · Contrast checker → · Palette generator →

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