#7E1A87#7E1A87

#7E1A87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.181 H 324.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1A87
RGBrgb(126, 26, 135)
HSLhsl(295, 68%, 32%)
HSVhsv(295, 81%, 53%)
CMYKcmyk(6.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(31.63, 54.56, -37.93)
CIE-LCHlch(31.63, 66.45, 325.20°)
OKLaboklab(43.47% 0.1474 -0.1059)
OKLCHoklch(43.47% 0.181 324.3)
XYZxyz(13.3464, 6.9245, 23.5506)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A87 #23871A
analogous
#481A87 #7E1A87 #871A5A
triadic
#7E1A87 #877E1A #1A877E
tetradic
#7E1A87 #87481A #23871A #1A5A87
square
#7E1A87 #87481A #23871A #1A5A87
split-complementary
#7E1A87 #5A871A #1A8748
monochromatic
#1E0620 #4E1054 #7E1A87 #AE24BA #CE41DA

Accessibility & contrast

On white

8.81
#7E1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A87
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A87#FFFFFF#000000##FFFFFF
##7E1A871.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#314E85
Tritanopia (blue-blind)
#813051
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1a87;
/* rgb */ color: rgb(126, 26, 135);
/* oklch */ color: oklch(43.5% 0.181 324.3);
Tailwind
colors: {
  custom: {
    50: '#a764aa',
    500: '#7e1a87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a87;
$custom-light: #a764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a87",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 295.046,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43471,
    "c": 0.18146,
    "h": 324.3
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#7E1A87
secondary
#4CBA42
accent
#EB3D4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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