#7E1D9E#7E1D9E

#7E1D9E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.198 H 315.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E1D9E
RGBrgb(126, 29, 158)
HSLhsl(285, 69%, 37%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(20.3%, 81.6%, 0%, 38%)
CIE-LABlab(33.53, 58.00, -49.01)
CIE-LCHlch(33.53, 75.93, 319.80°)
OKLaboklab(45.31% 0.1417 -0.1383)
OKLCHoklch(45.31% 0.198 315.7)
XYZxyz(15.2141, 7.7836, 33.0421)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9E #3D9E1D
analogous
#3D1D9E #7E1D9E #9E1D7E
triadic
#7E1D9E #9E7E1D #1D9E7E
tetradic
#7E1D9E #9E3D1D #3D9E1D #1D7E9E
square
#7E1D9E #9E3D1D #3D9E1D #1D7E9E
split-complementary
#7E1D9E #7E9E1D #1D9E3D
monochromatic
#2C0A37 #55146A #7E1D9E #A726D2 #BE56E0

Accessibility & contrast

On white

8.21
#7E1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D9E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9E#FFFFFF#000000##FFFFFF
##7E1D9E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#18519B
Tritanopia (blue-blind)
#7C3C5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1d9e;
/* rgb */ color: rgb(126, 29, 158);
/* oklch */ color: oklch(45.3% 0.198 315.7);
Tailwind
colors: {
  custom: {
    50: '#a866bb',
    500: '#7e1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9e;
$custom-light: #a866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9e",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 285.116,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.19806,
    "h": 315.7
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#7E1D9E
secondary
#6FC354
accent
#EC3C68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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