#7E3BB9#7E3BB9

#7E3BB9 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.191 H 304.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7E3BB9
RGBrgb(126, 59, 185)
HSLhsl(272, 52%, 48%)
HSVhsv(272, 68%, 73%)
CMYKcmyk(31.9%, 68.1%, 0%, 27.5%)
CIE-LABlab(39.69, 51.91, -55.16)
CIE-LCHlch(39.69, 75.74, 313.26°)
OKLaboklab(50.29% 0.1088 -0.1566)
OKLCHoklch(50.29% 0.191 304.8)
XYZxyz(18.9231, 11.0664, 47.0287)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BB9 #76B93B
analogous
#3F3BB9 #7E3BB9 #B93BB5
triadic
#7E3BB9 #B97E3B #3BB97E
tetradic
#7E3BB9 #B93F3B #76B93B #3BB5B9
square
#7E3BB9 #B93F3B #76B93B #3BB5B9
split-complementary
#7E3BB9 #B5B93B #3BB93F
monochromatic
#3F1D5C #5E2C8B #7E3BB9 #9C64CD #BA92DC

Accessibility & contrast

On white

6.54
#7E3BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7E3BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BB9
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BB9#FFFFFF#000000##FFFFFF
##7E3BB91.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#0C5EB6
Tritanopia (blue-blind)
#735775
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e3bb9;
/* rgb */ color: rgb(126, 59, 185);
/* oklch */ color: oklch(50.3% 0.191 304.8);
Tailwind
colors: {
  custom: {
    50: '#a876cf',
    500: '#7e3bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bb9;
$custom-light: #a876cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bb9",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 185
  },
  "hsl": {
    "h": 271.905,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50293,
    "c": 0.19071,
    "h": 304.8
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#7E3BB9
secondary
#A6C788
accent
#DB4D8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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