#7E26A8#7E26A8

#7E26A8 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.8% C 0.198 H 311.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7E26A8
RGBrgb(126, 38, 168)
HSLhsl(281, 63%, 40%)
HSVhsv(281, 77%, 66%)
CMYKcmyk(25%, 77.4%, 0%, 34.1%)
CIE-LABlab(35.30, 57.03, -52.17)
CIE-LCHlch(35.30, 77.30, 317.55°)
OKLaboklab(46.79% 0.1324 -0.1477)
OKLCHoklch(46.79% 0.198 311.9)
XYZxyz(16.3639, 8.6494, 37.8457)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26A8 #50A826
analogous
#3D26A8 #7E26A8 #A82691
triadic
#7E26A8 #A87E26 #26A87E
tetradic
#7E26A8 #A83D26 #50A826 #2691A8
square
#7E26A8 #A83D26 #50A826 #2691A8
split-complementary
#7E26A8 #91A826 #26A83D
monochromatic
#330F44 #591B76 #7E26A8 #A139D2 #B86BDE

Accessibility & contrast

On white

7.69
#7E26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26A8
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26A8#FFFFFF#000000##FFFFFF
##7E26A81.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0D55A5
Tritanopia (blue-blind)
#794566
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e26a8;
/* rgb */ color: rgb(126, 38, 168);
/* oklch */ color: oklch(46.8% 0.198 311.9);
Tailwind
colors: {
  custom: {
    50: '#a86ac3',
    500: '#7e26a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e26a8;
$custom-light: #a86ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26a8",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 280.615,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46786,
    "c": 0.19836,
    "h": 311.9
  },
  "luminance": 0.08649
}

Semantic roles & 50–950 ramp

primary
#7E26A8
secondary
#84C466
accent
#E64277
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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