#7E3BBB#7E3BBB

#7E3BBB is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.193 H 304.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7E3BBB
RGBrgb(126, 59, 187)
HSLhsl(271, 52%, 48%)
HSVhsv(271, 68%, 73%)
CMYKcmyk(32.6%, 68.4%, 0%, 26.7%)
CIE-LABlab(39.83, 52.38, -56.11)
CIE-LCHlch(39.83, 76.76, 313.03°)
OKLaboklab(50.44% 0.1086 -0.1594)
OKLCHoklch(50.44% 0.193 304.3)
XYZxyz(19.1358, 11.1515, 48.1484)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BBB #78BB3B
analogous
#3E3BBB #7E3BBB #BB3BB8
triadic
#7E3BBB #BB7E3B #3BBB7E
tetradic
#7E3BBB #BB3E3B #78BB3B #3BB8BB
square
#7E3BBB #BB3E3B #78BB3B #3BB8BB
split-complementary
#7E3BBB #B8BB3B #3BBB3E
monochromatic
#3F1E5E #5F2C8C #7E3BBB #9C65CE #BA93DD

Accessibility & contrast

On white

6.50
#7E3BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7E3BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BBB
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BBB#FFFFFF#000000##FFFFFF
##7E3BBB1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#035EB8
Tritanopia (blue-blind)
#725876
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e3bbb;
/* rgb */ color: rgb(126, 59, 187);
/* oklch */ color: oklch(50.4% 0.193 304.3);
Tailwind
colors: {
  custom: {
    50: '#a876d0',
    500: '#7e3bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bbb;
$custom-light: #a876d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bbb",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 271.406,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.19286,
    "h": 304.3
  },
  "luminance": 0.11151
}

Semantic roles & 50–950 ramp

primary
#7E3BBB
secondary
#A7C88A
accent
#DB4C91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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