#7E1FA6#7E1FA6

#7E1FA6 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.203 H 313.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7E1FA6
RGBrgb(126, 31, 166)
HSLhsl(282, 69%, 39%)
HSVhsv(282, 81%, 65%)
CMYKcmyk(24.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(34.33, 58.99, -52.54)
CIE-LCHlch(34.33, 78.99, 318.31°)
OKLaboklab(46.06% 0.1386 -0.1487)
OKLCHoklch(46.06% 0.203 313)
XYZxyz(15.9759, 8.1693, 36.8043)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FA6 #47A61F
analogous
#3A1FA6 #7E1FA6 #A61F8A
triadic
#7E1FA6 #A67E1F #1FA67E
tetradic
#7E1FA6 #A63A1F #47A61F #1F8AA6
square
#7E1FA6 #A63A1F #47A61F #1F8AA6
split-complementary
#7E1FA6 #8AA61F #1FA63A
monochromatic
#300C3F #571572 #7E1FA6 #A42BD7 #BA5EE1

Accessibility & contrast

On white

7.97
#7E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FA6
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FA6#FFFFFF#000000##FFFFFF
##7E1FA61.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0553A3
Tritanopia (blue-blind)
#794164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1fa6;
/* rgb */ color: rgb(126, 31, 166);
/* oklch */ color: oklch(46.1% 0.203 313.0);
Tailwind
colors: {
  custom: {
    50: '#a868c1',
    500: '#7e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fa6;
$custom-light: #a868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fa6",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 282.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.20327,
    "h": 313
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#7E1FA6
secondary
#7BC55B
accent
#EB3C70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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