#7E1F9E#7E1F9E

#7E1F9E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.196 H 315.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1F9E
RGBrgb(126, 31, 158)
HSLhsl(285, 67%, 37%)
HSVhsv(285, 80%, 62%)
CMYKcmyk(20.3%, 80.4%, 0%, 38%)
CIE-LABlab(33.74, 57.38, -48.66)
CIE-LCHlch(33.74, 75.23, 319.70°)
OKLaboklab(45.46% 0.1402 -0.1373)
OKLCHoklch(45.46% 0.196 315.6)
XYZxyz(15.2647, 7.8848, 33.0590)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9E #3F9E1F
analogous
#3F1F9E #7E1F9E #9E1F7F
triadic
#7E1F9E #9E7E1F #1F9E7E
tetradic
#7E1F9E #9E3F1F #3F9E1F #1F7F9E
square
#7E1F9E #9E3F1F #3F9E1F #1F7F9E
split-complementary
#7E1F9E #7F9E1F #1F9E3F
monochromatic
#2C0B38 #55156B #7E1F9E #A729D1 #BD59DE

Accessibility & contrast

On white

8.15
#7E1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F9E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F9E#FFFFFF#000000##FFFFFF
##7E1F9E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#1A529B
Tritanopia (blue-blind)
#7B3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9e;
/* rgb */ color: rgb(126, 31, 158);
/* oklch */ color: oklch(45.5% 0.196 315.6);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7e1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9e;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 284.882,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45459,
    "c": 0.19625,
    "h": 315.6
  },
  "luminance": 0.07884
}

Semantic roles & 50–950 ramp

primary
#7E1F9E
secondary
#72C256
accent
#EA3E69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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