#7E1D9D#7E1D9D

#7E1D9D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.197 H 316.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1D9D
RGBrgb(126, 29, 157)
HSLhsl(285, 69%, 36%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(19.7%, 81.5%, 0%, 38.4%)
CIE-LABlab(33.46, 57.80, -48.52)
CIE-LCHlch(33.46, 75.46, 319.99°)
OKLaboklab(45.24% 0.1419 -0.1369)
OKLCHoklch(45.24% 0.197 316)
XYZxyz(15.1284, 7.7493, 32.5906)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9D #3C9D1D
analogous
#3E1D9D #7E1D9D #9D1D7C
triadic
#7E1D9D #9D7E1D #1D9D7E
tetradic
#7E1D9D #9D3E1D #3C9D1D #1D7C9D
square
#7E1D9D #9D3E1D #3C9D1D #1D7C9D
split-complementary
#7E1D9D #7C9D1D #1D9D3E
monochromatic
#2B0A36 #551369 #7E1D9D #A727D1 #BE55E0

Accessibility & contrast

On white

8.24
#7E1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D9D
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9D#FFFFFF#000000##FFFFFF
##7E1D9D1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#1A519A
Tritanopia (blue-blind)
#7C3C5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1d9d;
/* rgb */ color: rgb(126, 29, 157);
/* oklch */ color: oklch(45.2% 0.197 316.0);
Tailwind
colors: {
  custom: {
    50: '#a866bb',
    500: '#7e1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9d;
$custom-light: #a866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9d",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 285.469,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.1972,
    "h": 316
  },
  "luminance": 0.07749
}

Semantic roles & 50–950 ramp

primary
#7E1D9D
secondary
#6EC353
accent
#EC3C67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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