#7E1B84#7E1B84

#7E1B84 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.178 H 325.5°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7E1B84
RGBrgb(126, 27, 132)
HSLhsl(297, 66%, 31%)
HSVhsv(297, 80%, 52%)
CMYKcmyk(4.5%, 79.5%, 0%, 48.2%)
CIE-LABlab(31.55, 53.73, -36.20)
CIE-LCHlch(31.55, 64.79, 326.03°)
OKLaboklab(43.35% 0.1468 -0.1008)
OKLCHoklch(43.35% 0.178 325.5)
XYZxyz(13.1607, 6.8863, 22.4613)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B84 #21841B
analogous
#491B84 #7E1B84 #841B55
triadic
#7E1B84 #847E1B #1B847E
tetradic
#7E1B84 #84491B #21841B #1B5584
square
#7E1B84 #84491B #21841B #1B5584
split-complementary
#7E1B84 #55841B #1B8449
monochromatic
#1D061E #4D1151 #7E1B84 #AE25B7 #D041D8

Accessibility & contrast

On white

8.83
#7E1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B84
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B84#FFFFFF#000000##FFFFFF
##7E1B841.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#334E82
Tritanopia (blue-blind)
#812F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b84;
/* rgb */ color: rgb(126, 27, 132);
/* oklch */ color: oklch(43.3% 0.178 325.5);
Tailwind
colors: {
  custom: {
    50: '#a764a8',
    500: '#7e1b84',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b84;
$custom-light: #a764a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b84",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 296.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43348,
    "c": 0.17807,
    "h": 325.5
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#7E1B84
secondary
#4AB743
accent
#E93F49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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