#7E26B4#7E26B4

#7E26B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.209 H 308.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7E26B4
RGBrgb(126, 38, 180)
HSLhsl(277, 65%, 43%)
HSVhsv(277, 79%, 71%)
CMYKcmyk(30%, 78.9%, 0%, 29.4%)
CIE-LABlab(36.21, 59.59, -57.86)
CIE-LCHlch(36.21, 83.06, 315.85°)
OKLaboklab(47.71% 0.1299 -0.1644)
OKLCHoklch(47.71% 0.21 308.3)
XYZxyz(17.5338, 9.1174, 44.0073)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26B4 #5CB426
analogous
#3726B4 #7E26B4 #B426A3
triadic
#7E26B4 #B47E26 #26B47E
tetradic
#7E26B4 #B43726 #5CB426 #26A3B4
square
#7E26B4 #B43726 #5CB426 #26A3B4
split-complementary
#7E26B4 #A3B426 #26B437
monochromatic
#37114F #5B1B81 #7E26B4 #9E40D7 #B773E1

Accessibility & contrast

On white

7.44
#7E26B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E26B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26B4
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26B4#FFFFFF#000000##FFFFFF
##7E26B41.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#754A6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e26b4;
/* rgb */ color: rgb(126, 38, 180);
/* oklch */ color: oklch(47.7% 0.209 308.3);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7e26b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e26b4;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26b4",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 277.183,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4771,
    "c": 0.2095,
    "h": 308.3
  },
  "luminance": 0.09117
}

Semantic roles & 50–950 ramp

primary
#7E26B4
secondary
#90C96D
accent
#E84080
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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