#7E26B7#7E26B7

#7E26B7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.212 H 307.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7E26B7
RGBrgb(126, 38, 183)
HSLhsl(276, 66%, 43%)
HSVhsv(276, 79%, 72%)
CMYKcmyk(31.1%, 79.2%, 0%, 28.2%)
CIE-LABlab(36.44, 60.24, -59.25)
CIE-LCHlch(36.44, 84.50, 315.47°)
OKLaboklab(47.95% 0.1291 -0.1685)
OKLCHoklch(47.95% 0.212 307.5)
XYZxyz(17.8427, 9.2410, 45.6343)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26B7 #5FB726
analogous
#3526B7 #7E26B7 #B726A7
triadic
#7E26B7 #B77E26 #26B77E
tetradic
#7E26B7 #B73526 #5FB726 #26A7B7
square
#7E26B7 #B73526 #5FB726 #26A7B7
split-complementary
#7E26B7 #A7B726 #26B735
monochromatic
#381152 #5B1B84 #7E26B7 #9D42D8 #B775E2

Accessibility & contrast

On white

7.37
#7E26B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E26B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26B7
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26B7#FFFFFF#000000##FFFFFF
##7E26B71.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#744C6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e26b7;
/* rgb */ color: rgb(126, 38, 183);
/* oklch */ color: oklch(47.9% 0.212 307.5);
Tailwind
colors: {
  custom: {
    50: '#a96bce',
    500: '#7e26b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e26b7;
$custom-light: #a96bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26b7",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 183
  },
  "hsl": {
    "h": 276.414,
    "s": 65.611,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47947,
    "c": 0.2123,
    "h": 307.5
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#7E26B7
secondary
#93CA6F
accent
#E93F82
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E26B7

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

Preview Lab → · Contrast checker → · Palette generator →

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