#7E26AB#7E26AB

#7E26AB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.201 H 310.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7E26AB
RGBrgb(126, 38, 171)
HSLhsl(280, 64%, 41%)
HSVhsv(280, 78%, 67%)
CMYKcmyk(26.3%, 77.8%, 0%, 32.9%)
CIE-LABlab(35.52, 57.67, -53.61)
CIE-LCHlch(35.52, 78.73, 317.09°)
OKLaboklab(47.01% 0.1318 -0.1519)
OKLCHoklch(47.01% 0.201 310.9)
XYZxyz(16.6466, 8.7625, 39.3346)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26AB #53AB26
analogous
#3B26AB #7E26AB #AB2695
triadic
#7E26AB #AB7E26 #26AB7E
tetradic
#7E26AB #AB3B26 #53AB26 #2695AB
square
#7E26AB #AB3B26 #53AB26 #2695AB
split-complementary
#7E26AB #95AB26 #26AB3B
monochromatic
#341047 #591B79 #7E26AB #A03BD3 #B86DDF

Accessibility & contrast

On white

7.63
#7E26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26AB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26AB#FFFFFF#000000##FFFFFF
##7E26AB1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0255A8
Tritanopia (blue-blind)
#784668
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e26ab;
/* rgb */ color: rgb(126, 38, 171);
/* oklch */ color: oklch(47.0% 0.201 310.9);
Tailwind
colors: {
  custom: {
    50: '#a86bc5',
    500: '#7e26ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e26ab;
$custom-light: #a86bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26ab",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 279.699,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47013,
    "c": 0.20114,
    "h": 310.9
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#7E26AB
secondary
#87C568
accent
#E74179
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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