#7E1D8B#7E1D8B

#7E1D8B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.182 H 322.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7E1D8B
RGBrgb(126, 29, 139)
HSLhsl(293, 65%, 33%)
HSVhsv(293, 79%, 55%)
CMYKcmyk(9.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(32.21, 54.37, -39.48)
CIE-LCHlch(32.21, 67.20, 324.01°)
OKLaboklab(43.96% 0.1445 -0.1104)
OKLCHoklch(43.96% 0.182 322.6)
XYZxyz(13.7033, 7.1792, 25.0850)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8B #2A8B1D
analogous
#471D8B #7E1D8B #8B1D61
triadic
#7E1D8B #8B7E1D #1D8B7E
tetradic
#7E1D8B #8B471D #2A8B1D #1D618B
square
#7E1D8B #8B471D #2A8B1D #1D618B
split-complementary
#7E1D8B #618B1D #1D8B47
monochromatic
#220826 #501258 #7E1D8B #AC28BE #C849D9

Accessibility & contrast

On white

8.62
#7E1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D8B
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8B#FFFFFF#000000##FFFFFF
##7E1D8B1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#803354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8b;
/* rgb */ color: rgb(126, 29, 139);
/* oklch */ color: oklch(44.0% 0.182 322.6);
Tailwind
colors: {
  custom: {
    50: '#a765ad',
    500: '#7e1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8b;
$custom-light: #a765ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8b",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 292.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.18188,
    "h": 322.6
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#7E1D8B
secondary
#56BB49
accent
#E83F53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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