#7E1B82#7E1B82

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

Color values

HEX#7E1B82
RGBrgb(126, 27, 130)
HSLhsl(298, 66%, 31%)
HSVhsv(298, 79%, 51%)
CMYKcmyk(3.1%, 79.2%, 0%, 49%)
CIE-LABlab(31.42, 53.38, -35.15)
CIE-LCHlch(31.42, 63.91, 326.64°)
OKLaboklab(43.22% 0.1469 -0.0978)
OKLCHoklch(43.22% 0.176 326.4)
XYZxyz(13.0251, 6.8321, 21.7475)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B82 #1F821B
analogous
#4A1B82 #7E1B82 #821B52
triadic
#7E1B82 #827E1B #1B827E
tetradic
#7E1B82 #824A1B #1F821B #1B5282
square
#7E1B82 #824A1B #1F821B #1B5282
split-complementary
#7E1B82 #52821B #1B824A
monochromatic
#1C061D #4D104F #7E1B82 #AF26B5 #D140D7

Accessibility & contrast

On white

8.87
#7E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B82
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B82#FFFFFF#000000##FFFFFF
##7E1B821.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#354E80
Tritanopia (blue-blind)
#812E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b82;
/* rgb */ color: rgb(126, 27, 130);
/* oklch */ color: oklch(43.2% 0.176 326.4);
Tailwind
colors: {
  custom: {
    50: '#a764a7',
    500: '#7e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b82;
$custom-light: #a764a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b82",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 297.67,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43219,
    "c": 0.17646,
    "h": 326.4
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#7E1B82
secondary
#48B643
accent
#E93F46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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