#7E1E71#7E1E71

#7E1E71 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.160 H 334.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1E71
RGBrgb(126, 30, 113)
HSLhsl(308, 62%, 31%)
HSVhsv(308, 76%, 49%)
CMYKcmyk(0%, 76.2%, 10.3%, 50.6%)
CIE-LABlab(30.78, 49.55, -25.44)
CIE-LCHlch(30.78, 55.70, 332.82°)
OKLaboklab(42.44% 0.1439 -0.0696)
OKLCHoklch(42.44% 0.16 334.2)
XYZxyz(12.0492, 6.5575, 16.2507)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E71 #1E7E2B
analogous
#5B1E7E #7E1E71 #7E1E41
triadic
#7E1E71 #717E1E #1E717E
tetradic
#7E1E71 #7E5B1E #1E7E2B #1E417E
square
#7E1E71 #7E5B1E #1E7E2B #1E417E
split-complementary
#7E1E71 #417E1E #1E7E5B
monochromatic
#1B0618 #4D1245 #7E1E71 #AF2A9D #D244BF

Accessibility & contrast

On white

9.09
#7E1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E71
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E71#FFFFFF#000000##FFFFFF
##7E1E711.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#842745
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1e71;
/* rgb */ color: rgb(126, 30, 113);
/* oklch */ color: oklch(42.4% 0.160 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7659a',
    500: '#7e1e71',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e71;
$custom-light: #a7659a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e71",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 308.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.15988,
    "h": 334.2
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#7E1E71
secondary
#47B155
accent
#E55943
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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