#7E1D88#7E1D88

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

Color values

HEX#7E1D88
RGBrgb(126, 29, 136)
HSLhsl(294, 65%, 32%)
HSVhsv(294, 79%, 53%)
CMYKcmyk(7.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(32.02, 53.82, -37.93)
CIE-LCHlch(32.02, 65.85, 324.82°)
OKLaboklab(43.76% 0.1448 -0.1059)
OKLCHoklch(43.76% 0.179 323.8)
XYZxyz(13.4871, 7.0928, 23.9464)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D88 #27881D
analogous
#491D88 #7E1D88 #881D5C
triadic
#7E1D88 #887E1D #1D887E
tetradic
#7E1D88 #88491D #27881D #1D5C88
square
#7E1D88 #88491D #27881D #1D5C88
split-complementary
#7E1D88 #5C881D #1D8849
monochromatic
#210723 #4F1256 #7E1D88 #AD28BA #CA48D8

Accessibility & contrast

On white

8.68
#7E1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D88
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D88#FFFFFF#000000##FFFFFF
##7E1D881.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#314F86
Tritanopia (blue-blind)
#803252
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1d88;
/* rgb */ color: rgb(126, 29, 136);
/* oklch */ color: oklch(43.8% 0.179 323.8);
Tailwind
colors: {
  custom: {
    50: '#a765ab',
    500: '#7e1d88',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d88;
$custom-light: #a765ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d88",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 294.393,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43763,
    "c": 0.17938,
    "h": 323.8
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#7E1D88
secondary
#52BA47
accent
#E84050
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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