#7E26B3#7E26B3

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

Color values

HEX#7E26B3
RGBrgb(126, 38, 179)
HSLhsl(277, 65%, 43%)
HSVhsv(277, 79%, 70%)
CMYKcmyk(29.6%, 78.8%, 0%, 29.8%)
CIE-LABlab(36.13, 59.38, -57.39)
CIE-LCHlch(36.13, 82.58, 315.97°)
OKLaboklab(47.63% 0.1301 -0.163)
OKLCHoklch(47.63% 0.209 308.6)
XYZxyz(17.4323, 9.0768, 43.4728)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26B3 #5BB326
analogous
#3826B3 #7E26B3 #B326A1
triadic
#7E26B3 #B37E26 #26B37E
tetradic
#7E26B3 #B33826 #5BB326 #26A1B3
square
#7E26B3 #B33826 #5BB326 #26A1B3
split-complementary
#7E26B3 #A1B326 #26B338
monochromatic
#37114E #5A1B81 #7E26B3 #9E40D6 #B772E1

Accessibility & contrast

On white

7.46
#7E26B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E26B3
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26B3#FFFFFF#000000##FFFFFF
##7E26B31.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#764A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e26b3;
/* rgb */ color: rgb(126, 38, 179);
/* oklch */ color: oklch(47.6% 0.209 308.6);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7e26b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e26b3;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26b3",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 179
  },
  "hsl": {
    "h": 277.447,
    "s": 64.977,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47631,
    "c": 0.20857,
    "h": 308.6
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#7E26B3
secondary
#8FC86D
accent
#E8407F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E26B3

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

Preview Lab → · Contrast checker → · Palette generator →

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