#7E26AD#7E26AD

#7E26AD is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.203 H 310.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7E26AD
RGBrgb(126, 38, 173)
HSLhsl(279, 64%, 41%)
HSVhsv(279, 78%, 68%)
CMYKcmyk(27.2%, 78%, 0%, 32.2%)
CIE-LABlab(35.67, 58.09, -54.56)
CIE-LCHlch(35.67, 79.69, 316.79°)
OKLaboklab(47.17% 0.1314 -0.1547)
OKLCHoklch(47.17% 0.203 310.3)
XYZxyz(16.8386, 8.8394, 40.3462)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26AD #55AD26
analogous
#3B26AD #7E26AD #AD2699
triadic
#7E26AD #AD7E26 #26AD7E
tetradic
#7E26AD #AD3B26 #55AD26 #2699AD
square
#7E26AD #AD3B26 #55AD26 #2699AD
split-complementary
#7E26AD #99AD26 #26AD3B
monochromatic
#351049 #591B7B #7E26AD #9F3CD4 #B86EDF

Accessibility & contrast

On white

7.59
#7E26AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E26AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26AD
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26AD#FFFFFF#000000##FFFFFF
##7E26AD1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#774769
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e26ad;
/* rgb */ color: rgb(126, 38, 173);
/* oklch */ color: oklch(47.2% 0.203 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86bc6',
    500: '#7e26ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e26ad;
$custom-light: #a86bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26ad",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 279.111,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47166,
    "c": 0.203,
    "h": 310.3
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#7E26AD
secondary
#89C669
accent
#E7417B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26AD

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

Preview Lab → · Contrast checker → · Palette generator →

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