#7E1B8E#7E1B8E

#7E1B8E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.186 H 321.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E1B8E
RGBrgb(126, 27, 142)
HSLhsl(292, 68%, 33%)
HSVhsv(292, 81%, 56%)
CMYKcmyk(11.3%, 81%, 0%, 44.3%)
CIE-LABlab(32.20, 55.54, -41.36)
CIE-LCHlch(32.20, 69.25, 323.33°)
OKLaboklab(44.02% 0.1458 -0.1159)
OKLCHoklch(44.02% 0.186 321.5)
XYZxyz(13.8781, 7.1733, 26.2395)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B8E #2B8E1B
analogous
#441B8E #7E1B8E #8E1B64
triadic
#7E1B8E #8E7E1B #1B8E7E
tetradic
#7E1B8E #8E441B #2B8E1B #1B648E
square
#7E1B8E #8E441B #2B8E1B #1B648E
split-complementary
#7E1B8E #648E1B #1B8E44
monochromatic
#230727 #50115B #7E1B8E #AC25C1 #C747DC

Accessibility & contrast

On white

8.63
#7E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B8E
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B8E#FFFFFF#000000##FFFFFF
##7E1B8E1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#7F3455
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1b8e;
/* rgb */ color: rgb(126, 27, 142);
/* oklch */ color: oklch(44.0% 0.186 321.5);
Tailwind
colors: {
  custom: {
    50: '#a765b0',
    500: '#7e1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b8e;
$custom-light: #a765b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b8e",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 291.652,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44017,
    "c": 0.18629,
    "h": 321.5
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#7E1B8E
secondary
#58BE47
accent
#EB3D55
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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