#7E1F9D#7E1F9D

#7E1F9D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.195 H 315.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7E1F9D
RGBrgb(126, 31, 157)
HSLhsl(285, 67%, 37%)
HSVhsv(285, 80%, 62%)
CMYKcmyk(19.7%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.67, 57.18, -48.17)
CIE-LCHlch(33.67, 74.77, 319.89°)
OKLaboklab(45.39% 0.1404 -0.1359)
OKLCHoklch(45.39% 0.195 315.9)
XYZxyz(15.1790, 7.8505, 32.6075)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9D #3E9D1F
analogous
#3F1F9D #7E1F9D #9D1F7D
triadic
#7E1F9D #9D7E1F #1F9D7E
tetradic
#7E1F9D #9D3F1F #3E9D1F #1F7D9D
square
#7E1F9D #9D3F1F #3E9D1F #1F7D9D
split-complementary
#7E1F9D #7D9D1F #1F9D3F
monochromatic
#2C0B37 #55156A #7E1F9D #A729D0 #BD58DE

Accessibility & contrast

On white

8.17
#7E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F9D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F9D#FFFFFF#000000##FFFFFF
##7E1F9D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1C529A
Tritanopia (blue-blind)
#7C3D5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9d;
/* rgb */ color: rgb(126, 31, 157);
/* oklch */ color: oklch(45.4% 0.195 315.9);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7e1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9d;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9d",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 285.238,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45386,
    "c": 0.19537,
    "h": 315.9
  },
  "luminance": 0.0785
}

Semantic roles & 50–950 ramp

primary
#7E1F9D
secondary
#70C256
accent
#EA3E68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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