#7E1FA1#7E1FA1

#7E1FA1 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.199 H 314.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E1FA1
RGBrgb(126, 31, 161)
HSLhsl(284, 68%, 38%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.7%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.96, 57.98, -50.12)
CIE-LCHlch(33.96, 76.64, 319.15°)
OKLaboklab(45.68% 0.1396 -0.1416)
OKLCHoklch(45.68% 0.199 314.6)
XYZxyz(15.5261, 7.9894, 34.4355)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FA1 #42A11F
analogous
#3D1FA1 #7E1FA1 #A11F83
triadic
#7E1FA1 #A17E1F #1FA17E
tetradic
#7E1FA1 #A13D1F #42A11F #1F83A1
square
#7E1FA1 #A13D1F #42A11F #1F83A1
split-complementary
#7E1FA1 #83A11F #1FA13D
monochromatic
#2E0B3A #56156E #7E1FA1 #A629D4 #BC5BDF

Accessibility & contrast

On white

8.08
#7E1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FA1
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FA1#FFFFFF#000000##FFFFFF
##7E1FA11.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#14529E
Tritanopia (blue-blind)
#7B3F61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1fa1;
/* rgb */ color: rgb(126, 31, 161);
/* oklch */ color: oklch(45.7% 0.199 314.6);
Tailwind
colors: {
  custom: {
    50: '#a867be',
    500: '#7e1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fa1;
$custom-light: #a867be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fa1",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 283.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.19888,
    "h": 314.6
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#7E1FA1
secondary
#75C458
accent
#EB3D6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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