#7E1A8F#7E1A8F

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

Color values

HEX#7E1A8F
RGBrgb(126, 26, 143)
HSLhsl(291, 69%, 33%)
HSVhsv(291, 82%, 56%)
CMYKcmyk(11.9%, 81.8%, 0%, 43.9%)
CIE-LABlab(32.16, 56.02, -42.03)
CIE-LCHlch(32.16, 70.03, 323.12°)
OKLaboklab(44.02% 0.1465 -0.1179)
OKLCHoklch(44.02% 0.188 321.2)
XYZxyz(13.9309, 7.1584, 26.6292)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A8F #2B8F1A
analogous
#431A8F #7E1A8F #8F1A65
triadic
#7E1A8F #8F7E1A #1A8F7E
tetradic
#7E1A8F #8F431A #2B8F1A #1A658F
square
#7E1A8F #8F431A #2B8F1A #1A658F
split-complementary
#7E1A8F #658F1A #1A8F43
monochromatic
#230727 #50115B #7E1A8F #AC23C3 #C746DD

Accessibility & contrast

On white

8.64
#7E1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A8F
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A8F#FFFFFF#000000##FFFFFF
##7E1A8F1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1a8f;
/* rgb */ color: rgb(126, 26, 143);
/* oklch */ color: oklch(44.0% 0.188 321.2);
Tailwind
colors: {
  custom: {
    50: '#a765b0',
    500: '#7e1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a8f;
$custom-light: #a765b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a8f",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 291.282,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44015,
    "c": 0.18803,
    "h": 321.2
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#7E1A8F
secondary
#58BF46
accent
#EC3C55
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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