#7E1DA0#7E1DA0

#7E1DA0 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.200 H 315.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7E1DA0
RGBrgb(126, 29, 160)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 82%, 63%)
CMYKcmyk(21.2%, 81.9%, 0%, 37.3%)
CIE-LABlab(33.67, 58.39, -49.98)
CIE-LCHlch(33.67, 76.86, 319.44°)
OKLaboklab(45.46% 0.1413 -0.1412)
OKLCHoklch(45.46% 0.2 315)
XYZxyz(15.3877, 7.8530, 33.9561)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DA0 #3FA01D
analogous
#3C1DA0 #7E1DA0 #A01D81
triadic
#7E1DA0 #A07E1D #1DA07E
tetradic
#7E1DA0 #A03C1D #3FA01D #1D81A0
square
#7E1DA0 #A03C1D #3FA01D #1D81A0
split-complementary
#7E1DA0 #81A01D #1DA03C
monochromatic
#2C0A38 #55146C #7E1DA0 #A726D4 #BD57E1

Accessibility & contrast

On white

8.17
#7E1DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E1DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DA0
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DA0#FFFFFF#000000##FFFFFF
##7E1DA01.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#14529D
Tritanopia (blue-blind)
#7B3D60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1da0;
/* rgb */ color: rgb(126, 29, 160);
/* oklch */ color: oklch(45.5% 0.200 315.0);
Tailwind
colors: {
  custom: {
    50: '#a866bd',
    500: '#7e1da0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1da0;
$custom-light: #a866bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1da0",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 284.427,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45459,
    "c": 0.19979,
    "h": 315
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

primary
#7E1DA0
secondary
#72C455
accent
#EC3C69
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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