#7E1D9B#7E1D9B

#7E1D9B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.195 H 316.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E1D9B
RGBrgb(126, 29, 155)
HSLhsl(286, 68%, 36%)
HSVhsv(286, 81%, 61%)
CMYKcmyk(18.7%, 81.3%, 0%, 39.2%)
CIE-LABlab(33.31, 57.41, -47.53)
CIE-LCHlch(33.31, 74.53, 320.38°)
OKLaboklab(45.09% 0.1423 -0.134)
OKLCHoklch(45.09% 0.195 316.7)
XYZxyz(14.9590, 7.6816, 31.6987)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D9B #3A9B1D
analogous
#3F1D9B #7E1D9B #9B1D79
triadic
#7E1D9B #9B7E1D #1D9B7E
tetradic
#7E1D9B #9B3F1D #3A9B1D #1D799B
square
#7E1D9B #9B3F1D #3A9B1D #1D799B
split-complementary
#7E1D9B #799B1D #1D9B3F
monochromatic
#2A0A34 #541367 #7E1D9B #A827CF #BF53DF

Accessibility & contrast

On white

8.28
#7E1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D9B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D9B#FFFFFF#000000##FFFFFF
##7E1D9B1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1D5198
Tritanopia (blue-blind)
#7C3B5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1d9b;
/* rgb */ color: rgb(126, 29, 155);
/* oklch */ color: oklch(45.1% 0.195 316.7);
Tailwind
colors: {
  custom: {
    50: '#a866b9',
    500: '#7e1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d9b;
$custom-light: #a866b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d9b",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 286.19,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45088,
    "c": 0.19548,
    "h": 316.7
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#7E1D9B
secondary
#6CC252
accent
#EB3C65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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