#7E1F97#7E1F97

#7E1F97 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.190 H 318.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1F97
RGBrgb(126, 31, 151)
HSLhsl(288, 66%, 36%)
HSVhsv(288, 79%, 59%)
CMYKcmyk(16.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(33.24, 56.00, -45.20)
CIE-LCHlch(33.24, 71.97, 321.09°)
OKLaboklab(44.95% 0.1413 -0.1272)
OKLCHoklch(44.95% 0.19 318)
XYZxyz(14.6793, 7.6506, 29.9757)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F97 #38971F
analogous
#421F97 #7E1F97 #971F74
triadic
#7E1F97 #977E1F #1F977E
tetradic
#7E1F97 #97421F #38971F #1F7497
square
#7E1F97 #97421F #38971F #1F7497
split-complementary
#7E1F97 #74971F #1F9742
monochromatic
#290A31 #541564 #7E1F97 #A829CA #C054DC

Accessibility & contrast

On white

8.30
#7E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F97
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F97#FFFFFF#000000##FFFFFF
##7E1F971.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#245194
Tritanopia (blue-blind)
#7D3A5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1f97;
/* rgb */ color: rgb(126, 31, 151);
/* oklch */ color: oklch(45.0% 0.190 318.0);
Tailwind
colors: {
  custom: {
    50: '#a767b6',
    500: '#7e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f97;
$custom-light: #a767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f97",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 287.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44952,
    "c": 0.19015,
    "h": 318
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#7E1F97
secondary
#69BF52
accent
#E93F62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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