#7E1D8C#7E1D8C

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

Color values

HEX#7E1D8C
RGBrgb(126, 29, 140)
HSLhsl(292, 66%, 33%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(10%, 79.3%, 0%, 45.1%)
CIE-LABlab(32.28, 54.56, -40.00)
CIE-LCHlch(32.28, 67.65, 323.75°)
OKLaboklab(44.03% 0.1444 -0.1119)
OKLCHoklch(44.03% 0.183 322.2)
XYZxyz(13.7767, 7.2086, 25.4716)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8C #2B8C1D
analogous
#461D8C #7E1D8C #8C1D62
triadic
#7E1D8C #8C7E1D #1D8C7E
tetradic
#7E1D8C #8C461D #2B8C1D #1D628C
square
#7E1D8C #8C461D #2B8C1D #1D628C
split-complementary
#7E1D8C #628C1D #1D8C46
monochromatic
#230827 #501259 #7E1D8C #AC28BF #C74AD9

Accessibility & contrast

On white

8.60
#7E1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D8C
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8C#FFFFFF#000000##FFFFFF
##7E1D8C1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#2E4F8A
Tritanopia (blue-blind)
#803454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8c;
/* rgb */ color: rgb(126, 29, 140);
/* oklch */ color: oklch(44.0% 0.183 322.2);
Tailwind
colors: {
  custom: {
    50: '#a765ae',
    500: '#7e1d8c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8c;
$custom-light: #a765ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8c",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 292.432,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44031,
    "c": 0.18272,
    "h": 322.2
  },
  "luminance": 0.07208
}

Semantic roles & 50–950 ramp

primary
#7E1D8C
secondary
#58BC49
accent
#E93F55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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