#7E1B8D#7E1B8D

#7E1B8D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.185 H 321.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E1B8D
RGBrgb(126, 27, 141)
HSLhsl(292, 68%, 33%)
HSVhsv(292, 81%, 55%)
CMYKcmyk(10.6%, 80.9%, 0%, 44.7%)
CIE-LABlab(32.13, 55.35, -40.85)
CIE-LCHlch(32.13, 68.79, 323.57°)
OKLaboklab(43.95% 0.146 -0.1144)
OKLCHoklch(43.95% 0.185 321.9)
XYZxyz(13.8033, 7.1434, 25.8459)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B8D #2A8D1B
analogous
#451B8D #7E1B8D #8D1B63
triadic
#7E1B8D #8D7E1B #1B8D7E
tetradic
#7E1B8D #8D451B #2A8D1B #1B638D
square
#7E1B8D #8D451B #2A8D1B #1B638D
split-complementary
#7E1B8D #638D1B #1B8D45
monochromatic
#220726 #50115A #7E1B8D #AC25C0 #C847DC

Accessibility & contrast

On white

8.65
#7E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B8D
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B8D#FFFFFF#000000##FFFFFF
##7E1B8D1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2C4F8A
Tritanopia (blue-blind)
#7F3354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1b8d;
/* rgb */ color: rgb(126, 27, 141);
/* oklch */ color: oklch(43.9% 0.185 321.9);
Tailwind
colors: {
  custom: {
    50: '#a765af',
    500: '#7e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b8d;
$custom-light: #a765af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b8d",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 292.105,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43949,
    "c": 0.18546,
    "h": 321.9
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#7E1B8D
secondary
#56BD46
accent
#EB3D54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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