#7E4EBA#7E4EBA

#7E4EBA is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.165 H 301.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7E4EBA
RGBrgb(126, 78, 186)
HSLhsl(267, 44%, 52%)
HSVhsv(267, 58%, 73%)
CMYKcmyk(32.3%, 58.1%, 0%, 27.1%)
CIE-LABlab(43.40, 42.28, -49.77)
CIE-LCHlch(43.40, 65.30, 310.35°)
OKLaboklab(53% 0.0863 -0.1408)
OKLCHoklch(53% 0.165 301.5)
XYZxyz(20.1894, 13.4295, 47.9734)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EBA #8ABA4E
analogous
#4E54BA #7E4EBA #B44EBA
triadic
#7E4EBA #BA7E4E #4EBA7E
tetradic
#7E4EBA #BA4E54 #8ABA4E #4EBAB4
square
#7E4EBA #BA4E54 #8ABA4E #4EBAB4
split-complementary
#7E4EBA #BAB44E #54BA4E
monochromatic
#432866 #603992 #7E4EBA #9E7ACB #BEA6DC

Accessibility & contrast

On white

5.70
#7E4EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7E4EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EBA
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EBA#FFFFFF#000000##FFFFFF
##7E4EBA1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BE
Deuteranopia (green-blind)
#3166B8
Tritanopia (blue-blind)
#72647C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4eba;
/* rgb */ color: rgb(126, 78, 186);
/* oklch */ color: oklch(53.0% 0.165 301.5);
Tailwind
colors: {
  custom: {
    50: '#a781cf',
    500: '#7e4eba',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eba;
$custom-light: #a781cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eba",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 266.667,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53003,
    "c": 0.16517,
    "h": 301.5
  },
  "luminance": 0.1343
}

Semantic roles & 50–950 ramp

primary
#7E4EBA
secondary
#B5CA9A
accent
#D4549B
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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