#7E3BB5#7E3BB5

#7E3BB5 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.0% C 0.186 H 305.9°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7E3BB5
RGBrgb(126, 59, 181)
HSLhsl(273, 51%, 47%)
HSVhsv(273, 67%, 71%)
CMYKcmyk(30.4%, 67.4%, 0%, 29%)
CIE-LABlab(39.41, 50.96, -53.26)
CIE-LCHlch(39.41, 73.71, 313.74°)
OKLaboklab(50% 0.1093 -0.151)
OKLCHoklch(50% 0.186 305.9)
XYZxyz(18.5068, 10.8999, 44.8360)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BB5 #72B53B
analogous
#413BB5 #7E3BB5 #B53BAF
triadic
#7E3BB5 #B57E3B #3BB57E
tetradic
#7E3BB5 #B5413B #72B53B #3BAFB5
square
#7E3BB5 #B5413B #72B53B #3BAFB5
split-complementary
#7E3BB5 #AFB53B #3BB541
monochromatic
#3E1D59 #5E2C87 #7E3BB5 #9C62CC #B990DB

Accessibility & contrast

On white

6.60
#7E3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E3BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BB5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BB5#FFFFFF#000000##FFFFFF
##7E3BB51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#745673
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e3bb5;
/* rgb */ color: rgb(126, 59, 181);
/* oklch */ color: oklch(50.0% 0.186 305.9);
Tailwind
colors: {
  custom: {
    50: '#a876cc',
    500: '#7e3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bb5;
$custom-light: #a876cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bb5",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 272.951,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.18642,
    "h": 305.9
  },
  "luminance": 0.109
}

Semantic roles & 50–950 ramp

primary
#7E3BB5
secondary
#A3C686
accent
#DA4D8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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