#7E1F86#7E1F86

#7E1F86 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.176 H 324.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E1F86
RGBrgb(126, 31, 134)
HSLhsl(295, 62%, 32%)
HSVhsv(295, 77%, 53%)
CMYKcmyk(6%, 76.9%, 0%, 47.5%)
CIE-LABlab(32.12, 52.80, -36.53)
CIE-LCHlch(32.12, 64.21, 325.32°)
OKLaboklab(43.79% 0.1431 -0.1018)
OKLCHoklch(43.79% 0.176 324.6)
XYZxyz(13.3969, 7.1377, 23.2217)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F86 #27861F
analogous
#4B1F86 #7E1F86 #861F5A
triadic
#7E1F86 #867E1F #1F867E
tetradic
#7E1F86 #864B1F #27861F #1F5A86
square
#7E1F86 #864B1F #27861F #1F5A86
split-complementary
#7E1F86 #5A861F #1F864B
monochromatic
#210823 #4F1454 #7E1F86 #AD2AB8 #CA4AD5

Accessibility & contrast

On white

8.65
#7E1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F86
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F86#FFFFFF#000000##FFFFFF
##7E1F861.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#344F84
Tritanopia (blue-blind)
#813251
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f86;
/* rgb */ color: rgb(126, 31, 134);
/* oklch */ color: oklch(43.8% 0.176 324.6);
Tailwind
colors: {
  custom: {
    50: '#a766aa',
    500: '#7e1f86',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f86;
$custom-light: #a766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f86",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 295.34,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.17564,
    "h": 324.6
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#7E1F86
secondary
#52B849
accent
#E5424F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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