#7E1DA1#7E1DA1

#7E1DA1 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.5% C 0.201 H 314.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1DA1
RGBrgb(126, 29, 161)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 82%, 63%)
CMYKcmyk(21.7%, 82%, 0%, 36.9%)
CIE-LABlab(33.75, 58.59, -50.47)
CIE-LCHlch(33.75, 77.33, 319.26°)
OKLaboklab(45.53% 0.1411 -0.1426)
OKLCHoklch(45.53% 0.201 314.7)
XYZxyz(15.4755, 7.8881, 34.4187)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DA1 #40A11D
analogous
#3C1DA1 #7E1DA1 #A11D82
triadic
#7E1DA1 #A17E1D #1DA17E
tetradic
#7E1DA1 #A13C1D #40A11D #1D82A1
square
#7E1DA1 #A13C1D #40A11D #1D82A1
split-complementary
#7E1DA1 #82A11D #1DA13C
monochromatic
#2D0A39 #55146D #7E1DA1 #A726D5 #BC58E1

Accessibility & contrast

On white

8.15
#7E1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DA1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DA1#FFFFFF#000000##FFFFFF
##7E1DA11.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#12529E
Tritanopia (blue-blind)
#7B3E60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1da1;
/* rgb */ color: rgb(126, 29, 161);
/* oklch */ color: oklch(45.5% 0.201 314.7);
Tailwind
colors: {
  custom: {
    50: '#a867be',
    500: '#7e1da1',
    950: '#000000',
  },
}
SCSS
$custom: #7e1da1;
$custom-light: #a867be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1da1",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 284.091,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45534,
    "c": 0.20066,
    "h": 314.7
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#7E1DA1
secondary
#73C455
accent
#EC3C6A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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