#7E1B86#7E1B86

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

Color values

HEX#7E1B86
RGBrgb(126, 27, 134)
HSLhsl(296, 66%, 32%)
HSVhsv(296, 80%, 53%)
CMYKcmyk(6%, 79.9%, 0%, 47.5%)
CIE-LABlab(31.67, 54.09, -37.24)
CIE-LCHlch(31.67, 65.67, 325.45°)
OKLaboklab(43.48% 0.1466 -0.1039)
OKLCHoklch(43.48% 0.18 324.7)
XYZxyz(13.2989, 6.9416, 23.1890)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B86 #23861B
analogous
#491B86 #7E1B86 #861B59
triadic
#7E1B86 #867E1B #1B867E
tetradic
#7E1B86 #86491B #23861B #1B5986
square
#7E1B86 #86491B #23861B #1B5986
split-complementary
#7E1B86 #59861B #1B8649
monochromatic
#1E0620 #4E1153 #7E1B86 #AE25B9 #CE42D9

Accessibility & contrast

On white

8.79
#7E1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E1B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B86
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B86#FFFFFF#000000##FFFFFF
##7E1B861.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#324E84
Tritanopia (blue-blind)
#813050
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b86;
/* rgb */ color: rgb(126, 27, 134);
/* oklch */ color: oklch(43.5% 0.180 324.7);
Tailwind
colors: {
  custom: {
    50: '#a764aa',
    500: '#7e1b86',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b86;
$custom-light: #a764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b86",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 295.514,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.17969,
    "h": 324.7
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#7E1B86
secondary
#4CB944
accent
#E93E4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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