#7E26A9#7E26A9

#7E26A9 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.9% C 0.199 H 311.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7E26A9
RGBrgb(126, 38, 169)
HSLhsl(280, 63%, 41%)
HSVhsv(280, 78%, 66%)
CMYKcmyk(25.4%, 77.5%, 0%, 33.7%)
CIE-LABlab(35.37, 57.24, -52.65)
CIE-LCHlch(35.37, 77.77, 317.39°)
OKLaboklab(46.86% 0.1322 -0.1491)
OKLCHoklch(46.86% 0.199 311.6)
XYZxyz(16.4574, 8.6869, 38.3382)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26A9 #51A926
analogous
#3C26A9 #7E26A9 #A92692
triadic
#7E26A9 #A97E26 #26A97E
tetradic
#7E26A9 #A93C26 #51A926 #2692A9
square
#7E26A9 #A93C26 #51A926 #2692A9
split-complementary
#7E26A9 #92A926 #26A93C
monochromatic
#331045 #591B77 #7E26A9 #A03AD3 #B86CDE

Accessibility & contrast

On white

7.67
#7E26A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E26A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26A9
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26A9#FFFFFF#000000##FFFFFF
##7E26A91.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0955A6
Tritanopia (blue-blind)
#794567
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e26a9;
/* rgb */ color: rgb(126, 38, 169);
/* oklch */ color: oklch(46.9% 0.199 311.6);
Tailwind
colors: {
  custom: {
    50: '#a86bc3',
    500: '#7e26a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e26a9;
$custom-light: #a86bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26a9",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 280.305,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.19929,
    "h": 311.6
  },
  "luminance": 0.08686
}

Semantic roles & 50–950 ramp

primary
#7E26A9
secondary
#85C467
accent
#E64178
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26A9

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

Preview Lab → · Contrast checker → · Palette generator →

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