#7E3EBA#7E3EBA

#7E3EBA is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.188 H 304.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E3EBA
RGBrgb(126, 62, 186)
HSLhsl(271, 50%, 49%)
HSVhsv(271, 67%, 73%)
CMYKcmyk(32.3%, 66.7%, 0%, 27.1%)
CIE-LABlab(40.29, 50.69, -54.78)
CIE-LCHlch(40.29, 74.64, 312.78°)
OKLaboklab(50.74% 0.1054 -0.1555)
OKLCHoklch(50.74% 0.188 304.1)
XYZxyz(19.1877, 11.4261, 47.6395)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EBA #7ABA3E
analogous
#403EBA #7E3EBA #BA3EB8
triadic
#7E3EBA #BA7E3E #3EBA7E
tetradic
#7E3EBA #BA403E #7ABA3E #3EB8BA
square
#7E3EBA #BA403E #7ABA3E #3EB8BA
split-complementary
#7E3EBA #B8BA3E #3EBA40
monochromatic
#401F5E #5F2F8C #7E3EBA #9C68CD #BA96DC

Accessibility & contrast

On white

6.39
#7E3EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7E3EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EBA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EBA#FFFFFF#000000##FFFFFF
##7E3EBA1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#125FB7
Tritanopia (blue-blind)
#735977
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3eba;
/* rgb */ color: rgb(126, 62, 186);
/* oklch */ color: oklch(50.7% 0.188 304.1);
Tailwind
colors: {
  custom: {
    50: '#a878cf',
    500: '#7e3eba',
    950: '#000000',
  },
}
SCSS
$custom: #7e3eba;
$custom-light: #a878cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3eba",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 270.968,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50743,
    "c": 0.18788,
    "h": 304.1
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#7E3EBA
secondary
#A9C88C
accent
#DA4E92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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