#7E1B7E#7E1B7E

#7E1B7E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.173 H 328.1°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7E1B7E
RGBrgb(126, 27, 126)
HSLhsl(300, 65%, 30%)
HSVhsv(300, 79%, 49%)
CMYKcmyk(0%, 78.6%, 0%, 50.6%)
CIE-LABlab(31.18, 52.69, -33.03)
CIE-LCHlch(31.18, 62.18, 327.92°)
OKLaboklab(42.97% 0.147 -0.0916)
OKLCHoklch(42.97% 0.173 328.1)
XYZxyz(12.7619, 6.7268, 20.3609)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B7E #1B7E1B
analogous
#4C1B7E #7E1B7E #7E1B4D
triadic
#7E1B7E #7E7E1B #1B7E7E
tetradic
#7E1B7E #7E4D1B #1B7E1B #1B4C7E
square
#7E1B7E #7E4D1B #1B7E1B #1B4C7E
split-complementary
#7E1B7E #4D7E1B #1B7E4D
monochromatic
#190519 #4C104C #7E1B7E #B026B0 #D63ED6

Accessibility & contrast

On white

8.95
#7E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B7E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B7E#FFFFFF#000000##FFFFFF
##7E1B7E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024181
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#822B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1b7e;
/* rgb */ color: rgb(126, 27, 126);
/* oklch */ color: oklch(43.0% 0.173 328.1);
Tailwind
colors: {
  custom: {
    50: '#a764a4',
    500: '#7e1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b7e;
$custom-light: #a764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b7e",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42966,
    "c": 0.17324,
    "h": 328.1
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#7E1B7E
secondary
#43B243
accent
#E84040
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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