#7E1A8B#7E1A8B

#7E1A8B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.185 H 322.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7E1A8B
RGBrgb(126, 26, 139)
HSLhsl(293, 68%, 32%)
HSVhsv(293, 81%, 55%)
CMYKcmyk(9.4%, 81.3%, 0%, 45.5%)
CIE-LABlab(31.90, 55.28, -39.99)
CIE-LCHlch(31.90, 68.23, 324.12°)
OKLaboklab(43.74% 0.147 -0.1119)
OKLCHoklch(43.74% 0.185 322.7)
XYZxyz(13.6333, 7.0393, 25.0617)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A8B #278B1A
analogous
#451A8B #7E1A8B #8B1A60
triadic
#7E1A8B #8B7E1A #1A8B7E
tetradic
#7E1A8B #8B451A #278B1A #1A608B
square
#7E1A8B #8B451A #278B1A #1A608B
split-complementary
#7E1A8B #608B1A #1A8B45
monochromatic
#210724 #4F1057 #7E1A8B #AD24BF #CA43DC

Accessibility & contrast

On white

8.72
#7E1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A8B
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A8B#FFFFFF#000000##FFFFFF
##7E1A8B1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2D4F88
Tritanopia (blue-blind)
#803253
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1a8b;
/* rgb */ color: rgb(126, 26, 139);
/* oklch */ color: oklch(43.7% 0.185 322.7);
Tailwind
colors: {
  custom: {
    50: '#a764ad',
    500: '#7e1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a8b;
$custom-light: #a764ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a8b",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 293.097,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4374,
    "c": 0.18472,
    "h": 322.7
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#7E1A8B
secondary
#52BD44
accent
#EB3C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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