#7E26C5#7E26C5

#7E26C5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.1% C 0.225 H 303.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7E26C5
RGBrgb(126, 38, 197)
HSLhsl(273, 68%, 46%)
HSVhsv(273, 81%, 77%)
CMYKcmyk(36%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.58, 63.32, -65.64)
CIE-LCHlch(37.58, 91.20, 313.97°)
OKLaboklab(49.09% 0.1254 -0.1873)
OKLCHoklch(49.09% 0.225 303.8)
XYZxyz(19.3730, 9.8531, 53.6937)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E26C5 #6DC526
analogous
#2F26C5 #7E26C5 #C526BC
triadic
#7E26C5 #C57E26 #26C57E
tetradic
#7E26C5 #C52F26 #6DC526 #26BCC5
square
#7E26C5 #C52F26 #6DC526 #26BCC5
split-complementary
#7E26C5 #BCC526 #26C52F
monochromatic
#3C125E #5D1C92 #7E26C5 #9C4CDC #B87FE6

Accessibility & contrast

On white

7.07
#7E26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7E26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E26C5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E26C5#FFFFFF#000000##FFFFFF
##7E26C51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#705277
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e26c5;
/* rgb */ color: rgb(126, 38, 197);
/* oklch */ color: oklch(49.1% 0.225 303.8);
Tailwind
colors: {
  custom: {
    50: '#aa6cd8',
    500: '#7e26c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e26c5;
$custom-light: #aa6cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e26c5",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 273.208,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49089,
    "c": 0.22537,
    "h": 303.8
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#7E26C5
secondary
#9FCF78
accent
#EB3D8B
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #7E26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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