#7E1D87#7E1D87

#7E1D87 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.179 H 324.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7E1D87
RGBrgb(126, 29, 135)
HSLhsl(295, 65%, 32%)
HSVhsv(295, 79%, 53%)
CMYKcmyk(6.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.95, 53.64, -37.42)
CIE-LCHlch(31.95, 65.40, 325.10°)
OKLaboklab(43.7% 0.1449 -0.1044)
OKLCHoklch(43.7% 0.179 324.2)
XYZxyz(13.4164, 7.0645, 23.5739)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D87 #26871D
analogous
#491D87 #7E1D87 #871D5B
triadic
#7E1D87 #877E1D #1D877E
tetradic
#7E1D87 #87491D #26871D #1D5B87
square
#7E1D87 #87491D #26871D #1D5B87
split-complementary
#7E1D87 #5B871D #1D8749
monochromatic
#200722 #4F1255 #7E1D87 #AD28B9 #CB47D7

Accessibility & contrast

On white

8.70
#7E1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D87
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D87#FFFFFF#000000##FFFFFF
##7E1D871.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#813151
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1d87;
/* rgb */ color: rgb(126, 29, 135);
/* oklch */ color: oklch(43.7% 0.179 324.2);
Tailwind
colors: {
  custom: {
    50: '#a765aa',
    500: '#7e1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d87;
$custom-light: #a765aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d87",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 294.906,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43697,
    "c": 0.17855,
    "h": 324.2
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#7E1D87
secondary
#50B946
accent
#E8404E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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