#7E3BB7#7E3BB7

#7E3BB7 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.189 H 305.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7E3BB7
RGBrgb(126, 59, 183)
HSLhsl(272, 51%, 47%)
HSVhsv(272, 68%, 72%)
CMYKcmyk(31.1%, 67.8%, 0%, 28.2%)
CIE-LABlab(39.55, 51.43, -54.21)
CIE-LCHlch(39.55, 74.73, 313.49°)
OKLaboklab(50.15% 0.1091 -0.1538)
OKLCHoklch(50.15% 0.189 305.3)
XYZxyz(18.7135, 10.9826, 45.9246)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BB7 #74B73B
analogous
#403BB7 #7E3BB7 #B73BB2
triadic
#7E3BB7 #B77E3B #3BB77E
tetradic
#7E3BB7 #B7403B #74B73B #3BB2B7
square
#7E3BB7 #B7403B #74B73B #3BB2B7
split-complementary
#7E3BB7 #B2B73B #3BB740
monochromatic
#3E1D5A #5E2C89 #7E3BB7 #9C63CD #B991DC

Accessibility & contrast

On white

6.57
#7E3BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7E3BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BB7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BB7#FFFFFF#000000##FFFFFF
##7E3BB71.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#135DB4
Tritanopia (blue-blind)
#745774
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e3bb7;
/* rgb */ color: rgb(126, 59, 183);
/* oklch */ color: oklch(50.1% 0.189 305.3);
Tailwind
colors: {
  custom: {
    50: '#a876cd',
    500: '#7e3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bb7;
$custom-light: #a876cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bb7",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 272.419,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50147,
    "c": 0.18856,
    "h": 305.3
  },
  "luminance": 0.10982
}

Semantic roles & 50–950 ramp

primary
#7E3BB7
secondary
#A4C687
accent
#DB4D8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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