#7E1E72#7E1E72

#7E1E72 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.161 H 333.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7E1E72
RGBrgb(126, 30, 114)
HSLhsl(308, 62%, 31%)
HSVhsv(308, 76%, 49%)
CMYKcmyk(0%, 76.2%, 9.5%, 50.6%)
CIE-LABlab(30.83, 49.71, -25.99)
CIE-LCHlch(30.83, 56.09, 332.40°)
OKLaboklab(42.5% 0.144 -0.0712)
OKLCHoklch(42.5% 0.161 333.7)
XYZxyz(12.1058, 6.5801, 16.5488)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E72 #1E7E2A
analogous
#5A1E7E #7E1E72 #7E1E42
triadic
#7E1E72 #727E1E #1E727E
tetradic
#7E1E72 #7E5A1E #1E7E2A #1E427E
square
#7E1E72 #7E5A1E #1E7E2A #1E427E
split-complementary
#7E1E72 #427E1E #1E7E5A
monochromatic
#1B0619 #4D1245 #7E1E72 #AF2A9F #D244C1

Accessibility & contrast

On white

9.07
#7E1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E72
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E72#FFFFFF#000000##FFFFFF
##7E1E721.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4074
Deuteranopia (green-blind)
#3F4D70
Tritanopia (blue-blind)
#842746
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1e72;
/* rgb */ color: rgb(126, 30, 114);
/* oklch */ color: oklch(42.5% 0.161 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7e1e72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e72;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e72",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 307.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42497,
    "c": 0.16064,
    "h": 333.7
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#7E1E72
secondary
#47B154
accent
#E55743
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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