#7E1D9A#7E1D9A

#7E1D9A is a mid, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.195 H 317.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1D9A
RGBrgb(126, 29, 154)
HSLhsl(287, 68%, 36%)
HSVhsv(287, 81%, 60%)
CMYKcmyk(18.2%, 81.2%, 0%, 39.6%)
CIE-LABlab(33.24, 57.21, -47.04)
CIE-LCHlch(33.24, 74.07, 320.57°)
OKLaboklab(45.02% 0.1425 -0.1326)
OKLCHoklch(45.02% 0.195 317.1)
XYZxyz(14.8754, 7.6481, 31.2583)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9A #399A1D
analogous
#3F1D9A #7E1D9A #9A1D77
triadic
#7E1D9A #9A7E1D #1D9A7E
tetradic
#7E1D9A #9A3F1D #399A1D #1D779A
square
#7E1D9A #9A3F1D #399A1D #1D779A
split-complementary
#7E1D9A #779A1D #1D9A3F
monochromatic
#2A0A33 #541366 #7E1D9A #A827CE #BF53DF

Accessibility & contrast

On white

8.30
#7E1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D9A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9A#FFFFFF#000000##FFFFFF
##7E1D9A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#1F5197
Tritanopia (blue-blind)
#7C3A5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1d9a;
/* rgb */ color: rgb(126, 29, 154);
/* oklch */ color: oklch(45.0% 0.195 317.1);
Tailwind
colors: {
  custom: {
    50: '#a866b8',
    500: '#7e1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9a;
$custom-light: #a866b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9a",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 286.56,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45015,
    "c": 0.19462,
    "h": 317.1
  },
  "luminance": 0.07647
}

Semantic roles & 50–950 ramp

primary
#7E1D9A
secondary
#6AC251
accent
#EB3D64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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