#7E26B0#7E26B0

#7E26B0 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.206 H 309.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7E26B0
RGBrgb(126, 38, 176)
HSLhsl(278, 64%, 42%)
HSVhsv(278, 78%, 69%)
CMYKcmyk(28.4%, 78.4%, 0%, 31%)
CIE-LABlab(35.90, 58.73, -55.98)
CIE-LCHlch(35.90, 81.14, 316.37°)
OKLaboklab(47.4% 0.1308 -0.1589)
OKLCHoklch(47.4% 0.206 309.5)
XYZxyz(17.1322, 8.9568, 41.8922)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26B0 #58B026
analogous
#3926B0 #7E26B0 #B0269D
triadic
#7E26B0 #B07E26 #26B07E
tetradic
#7E26B0 #B03926 #58B026 #269DB0
square
#7E26B0 #B03926 #58B026 #269DB0
split-complementary
#7E26B0 #9DB026 #26B039
monochromatic
#36104B #5A1B7E #7E26B0 #9E3ED5 #B870E0

Accessibility & contrast

On white

7.52
#7E26B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E26B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26B0
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26B0#FFFFFF#000000##FFFFFF
##7E26B01.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#77496B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e26b0;
/* rgb */ color: rgb(126, 38, 176);
/* oklch */ color: oklch(47.4% 0.206 309.5);
Tailwind
colors: {
  custom: {
    50: '#a86bc8',
    500: '#7e26b0',
    950: '#000000',
  },
}
SCSS
$custom: #7e26b0;
$custom-light: #a86bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26b0",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 278.261,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47397,
    "c": 0.20578,
    "h": 309.5
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7E26B0
secondary
#8CC76B
accent
#E7407D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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