#7E1F9F#7E1F9F

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

Color values

HEX#7E1F9F
RGBrgb(126, 31, 159)
HSLhsl(285, 67%, 37%)
HSVhsv(285, 81%, 62%)
CMYKcmyk(20.8%, 80.5%, 0%, 37.6%)
CIE-LABlab(33.81, 57.58, -49.15)
CIE-LCHlch(33.81, 75.70, 319.51°)
OKLaboklab(45.53% 0.14 -0.1388)
OKLCHoklch(45.53% 0.197 315.2)
XYZxyz(15.3512, 7.9194, 33.5141)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9F #409F1F
analogous
#3E1F9F #7E1F9F #9F1F80
triadic
#7E1F9F #9F7E1F #1F9F7E
tetradic
#7E1F9F #9F3E1F #409F1F #1F809F
square
#7E1F9F #9F3E1F #409F1F #1F809F
split-complementary
#7E1F9F #809F1F #1F9F3E
monochromatic
#2D0B39 #55156C #7E1F9F #A729D2 #BC5ADF

Accessibility & contrast

On white

8.13
#7E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F9F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F9F#FFFFFF#000000##FFFFFF
##7E1F9F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#18529C
Tritanopia (blue-blind)
#7B3E60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9f;
/* rgb */ color: rgb(126, 31, 159);
/* oklch */ color: oklch(45.5% 0.197 315.2);
Tailwind
colors: {
  custom: {
    50: '#a867bc',
    500: '#7e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9f;
$custom-light: #a867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9f",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 284.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45533,
    "c": 0.19712,
    "h": 315.2
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#7E1F9F
secondary
#73C357
accent
#EA3E6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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