#7E4BBE#7E4BBE

#7E4BBE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.8% C 0.174 H 301.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E4BBE
RGBrgb(126, 75, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 61%, 75%)
CMYKcmyk(33.7%, 60.5%, 0%, 25.5%)
CIE-LABlab(43.04, 44.94, -52.68)
CIE-LCHlch(43.04, 69.25, 310.46°)
OKLaboklab(52.82% 0.0899 -0.1494)
OKLCHoklch(52.82% 0.174 301)
XYZxyz(20.4123, 13.1854, 50.1748)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BBE #8BBE4B
analogous
#4B51BE #7E4BBE #B84BBE
triadic
#7E4BBE #BE7E4B #4BBE7E
tetradic
#7E4BBE #BE4B51 #8BBE4B #4BBEB8
square
#7E4BBE #BE4B51 #8BBE4B #4BBEB8
split-complementary
#7E4BBE #BEB84B #51BE4B
monochromatic
#442669 #603696 #7E4BBE #9E78CE #BEA5DE

Accessibility & contrast

On white

5.77
#7E4BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E4BBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BBE
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BBE#FFFFFF#000000##FFFFFF
##7E4BBE1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0165C2
Deuteranopia (green-blind)
#2665BB
Tritanopia (blue-blind)
#71637D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4bbe;
/* rgb */ color: rgb(126, 75, 190);
/* oklch */ color: oklch(52.8% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#a780d2',
    500: '#7e4bbe',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bbe;
$custom-light: #a780d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bbe",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 190
  },
  "hsl": {
    "h": 266.609,
    "s": 46.939,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5282,
    "c": 0.17438,
    "h": 301
  },
  "luminance": 0.13185
}

Semantic roles & 50–950 ramp

primary
#7E4BBE
secondary
#B5CC99
accent
#D7519B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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