#7E1B70#7E1B70

#7E1B70 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.162 H 334.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7E1B70
RGBrgb(126, 27, 112)
HSLhsl(308, 65%, 30%)
HSVhsv(308, 79%, 49%)
CMYKcmyk(0%, 78.6%, 11.1%, 50.6%)
CIE-LABlab(30.38, 50.38, -25.43)
CIE-LCHlch(30.38, 56.43, 333.22°)
OKLaboklab(42.14% 0.1468 -0.0696)
OKLCHoklch(42.14% 0.162 334.6)
XYZxyz(11.9209, 6.3904, 15.9317)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B70 #1B7E29
analogous
#5B1B7E #7E1B70 #7E1B3E
triadic
#7E1B70 #707E1B #1B707E
tetradic
#7E1B70 #7E5B1B #1B7E29 #1B3E7E
square
#7E1B70 #7E5B1B #1B7E29 #1B3E7E
split-complementary
#7E1B70 #3E7E1B #1B7E5B
monochromatic
#190516 #4C1043 #7E1B70 #B0269D #D63EC0

Accessibility & contrast

On white

9.22
#7E1B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B70
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B70#FFFFFF#000000##FFFFFF
##7E1B701.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3E72
Deuteranopia (green-blind)
#3F4D6E
Tritanopia (blue-blind)
#842444
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1b70;
/* rgb */ color: rgb(126, 27, 112);
/* oklch */ color: oklch(42.1% 0.162 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76399',
    500: '#7e1b70',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b70;
$custom-light: #a76399;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b70",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 308.485,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42135,
    "c": 0.16243,
    "h": 334.6
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#7E1B70
secondary
#43B253
accent
#E85840
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1B70

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

Preview Lab → · Contrast checker → · Palette generator →

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