#7E1B6E#7E1B6E

#7E1B6E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.161 H 335.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7E1B6E
RGBrgb(126, 27, 110)
HSLhsl(310, 65%, 30%)
HSVhsv(310, 79%, 49%)
CMYKcmyk(0%, 78.6%, 12.7%, 50.6%)
CIE-LABlab(30.27, 50.07, -24.32)
CIE-LCHlch(30.27, 55.66, 334.09°)
OKLaboklab(42.02% 0.1466 -0.0664)
OKLCHoklch(42.02% 0.161 335.6)
XYZxyz(11.8108, 6.3464, 15.3518)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B6E #1B7E2B
analogous
#5D1B7E #7E1B6E #7E1B3C
triadic
#7E1B6E #6E7E1B #1B6E7E
tetradic
#7E1B6E #7E5D1B #1B7E2B #1B3C7E
square
#7E1B6E #7E5D1B #1B7E2B #1B3C7E
split-complementary
#7E1B6E #3C7E1B #1B7E5D
monochromatic
#190516 #4C1042 #7E1B6E #B0269A #D63EBD

Accessibility & contrast

On white

9.26
#7E1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B6E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B6E#FFFFFF#000000##FFFFFF
##7E1B6E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E70
Deuteranopia (green-blind)
#404C6C
Tritanopia (blue-blind)
#852343
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1b6e;
/* rgb */ color: rgb(126, 27, 110);
/* oklch */ color: oklch(42.0% 0.161 335.6);
Tailwind
colors: {
  custom: {
    50: '#a76398',
    500: '#7e1b6e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b6e;
$custom-light: #a76398;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b6e",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 309.697,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42023,
    "c": 0.16095,
    "h": 335.6
  },
  "luminance": 0.06345
}

Semantic roles & 50–950 ramp

primary
#7E1B6E
secondary
#43B255
accent
#E85B40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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