#7E1B81#7E1B81

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

Color values

HEX#7E1B81
RGBrgb(126, 27, 129)
HSLhsl(298, 65%, 31%)
HSVhsv(298, 79%, 51%)
CMYKcmyk(2.3%, 79.1%, 0%, 49.4%)
CIE-LABlab(31.36, 53.20, -34.62)
CIE-LCHlch(31.36, 63.48, 326.95°)
OKLaboklab(43.16% 0.1469 -0.0962)
OKLCHoklch(43.16% 0.176 326.8)
XYZxyz(12.9583, 6.8054, 21.3957)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B81 #1E811B
analogous
#4B1B81 #7E1B81 #811B51
triadic
#7E1B81 #817E1B #1B817E
tetradic
#7E1B81 #814B1B #1E811B #1B5181
square
#7E1B81 #814B1B #1E811B #1B5181
split-complementary
#7E1B81 #51811B #1B814B
monochromatic
#1B061C #4D104E #7E1B81 #AF26B4 #D23FD7

Accessibility & contrast

On white

8.90
#7E1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B81
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B81#FFFFFF#000000##FFFFFF
##7E1B811.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#354E7F
Tritanopia (blue-blind)
#822D4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b81;
/* rgb */ color: rgb(126, 27, 129);
/* oklch */ color: oklch(43.2% 0.176 326.8);
Tailwind
colors: {
  custom: {
    50: '#a764a6',
    500: '#7e1b81',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b81;
$custom-light: #a764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b81",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 298.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43155,
    "c": 0.17564,
    "h": 326.8
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#7E1B81
secondary
#47B543
accent
#E83F44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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