#7E1A7D#7E1A7D

#7E1A7D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.173 H 328.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7E1A7D
RGBrgb(126, 26, 125)
HSLhsl(301, 66%, 30%)
HSVhsv(301, 79%, 49%)
CMYKcmyk(0%, 79.4%, 0.8%, 50.6%)
CIE-LABlab(31.01, 52.82, -32.67)
CIE-LCHlch(31.01, 62.10, 328.27°)
OKLaboklab(42.83% 0.1479 -0.0905)
OKLCHoklch(42.83% 0.173 328.5)
XYZxyz(12.6751, 6.6560, 20.0152)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A7D #1A7E1B
analogous
#4D1A7E #7E1A7D #7E1A4B
triadic
#7E1A7D #7D7E1A #1A7D7E
tetradic
#7E1A7D #7E4D1A #1A7E1B #1A4B7E
square
#7E1A7D #7E4D1A #1A7E1B #1A4B7E
split-complementary
#7E1A7D #4B7E1A #1A7E4D
monochromatic
#190519 #4B104B #7E1A7D #B124AF #D73CD5

Accessibility & contrast

On white

9.01
#7E1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A7D
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A7D#FFFFFF#000000##FFFFFF
##7E1A7D1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024180
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#822A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1a7d;
/* rgb */ color: rgb(126, 26, 125);
/* oklch */ color: oklch(42.8% 0.173 328.5);
Tailwind
colors: {
  custom: {
    50: '#a764a3',
    500: '#7e1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a7d;
$custom-light: #a764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a7d",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 300.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42828,
    "c": 0.17344,
    "h": 328.5
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#7E1A7D
secondary
#42B243
accent
#E9413F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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