#7E1F8E#7E1F8E

#7E1F8E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.182 H 321.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7E1F8E
RGBrgb(126, 31, 142)
HSLhsl(291, 64%, 34%)
HSVhsv(291, 78%, 56%)
CMYKcmyk(11.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(32.63, 54.28, -40.66)
CIE-LCHlch(32.63, 67.82, 323.16°)
OKLaboklab(44.33% 0.1425 -0.1139)
OKLCHoklch(44.33% 0.182 321.4)
XYZxyz(13.9761, 7.3694, 26.2722)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F8E #2F8E1F
analogous
#471F8E #7E1F8E #8E1F67
triadic
#7E1F8E #8E7E1F #1F8E7E
tetradic
#7E1F8E #8E471F #2F8E1F #1F678E
square
#7E1F8E #8E471F #2F8E1F #1F678E
split-complementary
#7E1F8E #678E1F #1F8E47
monochromatic
#25092A #51145C #7E1F8E #AB2AC0 #C54FD9

Accessibility & contrast

On white

8.49
#7E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F8E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F8E#FFFFFF#000000##FFFFFF
##7E1F8E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2D508B
Tritanopia (blue-blind)
#7F3656
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1f8e;
/* rgb */ color: rgb(126, 31, 142);
/* oklch */ color: oklch(44.3% 0.182 321.4);
Tailwind
colors: {
  custom: {
    50: '#a766b0',
    500: '#7e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f8e;
$custom-light: #a766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f8e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 291.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44325,
    "c": 0.1824,
    "h": 321.4
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#7E1F8E
secondary
#5DBB4D
accent
#E74159
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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