#7E3EBD#7E3EBD

#7E3EBD is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.191 H 303.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7E3EBD
RGBrgb(126, 62, 189)
HSLhsl(270, 51%, 49%)
HSVhsv(270, 67%, 74%)
CMYKcmyk(33.3%, 67.2%, 0%, 25.9%)
CIE-LABlab(40.50, 51.41, -56.20)
CIE-LCHlch(40.50, 76.17, 312.45°)
OKLaboklab(50.96% 0.1051 -0.1597)
OKLCHoklch(50.96% 0.191 303.3)
XYZxyz(19.5100, 11.5550, 49.3367)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EBD #7DBD3E
analogous
#3E3EBD #7E3EBD #BD3EBD
triadic
#7E3EBD #BD7E3E #3EBD7E
tetradic
#7E3EBD #BD3E3E #7DBD3E #3EBDBD
square
#7E3EBD #BD3E3E #7DBD3E #3EBDBD
split-complementary
#7E3EBD #BDBD3E #3EBD3E
monochromatic
#412061 #5F2F8F #7E3EBD #9C6ACE #BB98DD

Accessibility & contrast

On white

6.34
#7E3EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7E3EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EBD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EBD#FFFFFF#000000##FFFFFF
##7E3EBD1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#075FBA
Tritanopia (blue-blind)
#725B78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3ebd;
/* rgb */ color: rgb(126, 62, 189);
/* oklch */ color: oklch(51.0% 0.191 303.3);
Tailwind
colors: {
  custom: {
    50: '#a878d2',
    500: '#7e3ebd',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ebd;
$custom-light: #a878d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ebd",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 189
  },
  "hsl": {
    "h": 270.236,
    "s": 50.598,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50961,
    "c": 0.19116,
    "h": 303.3
  },
  "luminance": 0.11555
}

Semantic roles & 50–950 ramp

primary
#7E3EBD
secondary
#ABC98E
accent
#DA4E93
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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