#7E26A6#7E26A6

#7E26A6 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.197 H 312.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E26A6
RGBrgb(126, 38, 166)
HSLhsl(281, 63%, 40%)
HSVhsv(281, 77%, 65%)
CMYKcmyk(24.1%, 77.1%, 0%, 34.9%)
CIE-LABlab(35.15, 56.61, -51.21)
CIE-LCHlch(35.15, 76.34, 317.87°)
OKLaboklab(46.64% 0.1328 -0.1449)
OKLCHoklch(46.64% 0.197 312.5)
XYZxyz(16.1790, 8.5755, 36.8720)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26A6 #4EA626
analogous
#3E26A6 #7E26A6 #A6268E
triadic
#7E26A6 #A67E26 #26A67E
tetradic
#7E26A6 #A63E26 #4EA626 #268EA6
square
#7E26A6 #A63E26 #4EA626 #268EA6
split-complementary
#7E26A6 #8EA626 #26A63E
monochromatic
#320F42 #581B74 #7E26A6 #A138D1 #B96ADD

Accessibility & contrast

On white

7.73
#7E26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26A6
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26A6#FFFFFF#000000##FFFFFF
##7E26A61.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#1354A3
Tritanopia (blue-blind)
#794465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e26a6;
/* rgb */ color: rgb(126, 38, 166);
/* oklch */ color: oklch(46.6% 0.197 312.5);
Tailwind
colors: {
  custom: {
    50: '#a86ac1',
    500: '#7e26a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e26a6;
$custom-light: #a86ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26a6",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 281.25,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.46637,
    "c": 0.19651,
    "h": 312.5
  },
  "luminance": 0.08575
}

Semantic roles & 50–950 ramp

primary
#7E26A6
secondary
#82C365
accent
#E64275
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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