#7E1786#7E1786

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

Color values

HEX#7E1786
RGBrgb(126, 23, 134)
HSLhsl(296, 71%, 31%)
HSVhsv(296, 83%, 53%)
CMYKcmyk(6%, 82.8%, 0%, 47.5%)
CIE-LABlab(31.28, 55.23, -37.87)
CIE-LCHlch(31.28, 66.97, 325.56°)
OKLaboklab(43.2% 0.1498 -0.1057)
OKLCHoklch(43.2% 0.183 324.8)
XYZxyz(13.2133, 6.7705, 23.1605)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1786 #1F8617
analogous
#461786 #7E1786 #861756
triadic
#7E1786 #867E17 #17867E
tetradic
#7E1786 #864617 #1F8617 #175686
square
#7E1786 #864617 #1F8617 #175686
split-complementary
#7E1786 #568617 #178646
monochromatic
#1C051E #4D0E52 #7E1786 #AF20BA #D13ADD

Accessibility & contrast

On white

8.92
#7E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1786
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1786#FFFFFF#000000##FFFFFF
##7E17861.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1786;
/* rgb */ color: rgb(126, 23, 134);
/* oklch */ color: oklch(43.2% 0.183 324.8);
Tailwind
colors: {
  custom: {
    50: '#a763aa',
    500: '#7e1786',
    950: '#000000',
  },
}
SCSS
$custom: #7e1786;
$custom-light: #a763aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1786",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 295.676,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43199,
    "c": 0.18332,
    "h": 324.8
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#7E1786
secondary
#48BA3F
accent
#ED3A47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1786

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

Preview Lab → · Contrast checker → · Palette generator →

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