#7E4BC6#7E4BC6

#7E4BC6 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.4% C 0.184 H 299.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7E4BC6
RGBrgb(126, 75, 198)
HSLhsl(265, 52%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(36.4%, 62.1%, 0%, 22.4%)
CIE-LABlab(43.57, 46.98, -56.48)
CIE-LCHlch(43.57, 73.46, 309.75°)
OKLaboklab(53.38% 0.0896 -0.1606)
OKLCHoklch(53.38% 0.184 299.1)
XYZxyz(21.3108, 13.5448, 54.9068)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BC6 #93C64B
analogous
#4B55C6 #7E4BC6 #BB4BC6
triadic
#7E4BC6 #C67E4B #4BC67E
tetradic
#7E4BC6 #C64B55 #93C64B #4BC6BB
square
#7E4BC6 #C64B55 #93C64B #4BC6BB
split-complementary
#7E4BC6 #C6BB4B #55C64B
monochromatic
#452472 #6133A1 #7E4BC6 #9F79D5 #C1A8E3

Accessibility & contrast

On white

5.66
#7E4BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7E4BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BC6
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BC6#FFFFFF#000000##FFFFFF
##7E4BC61.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#1766C3
Tritanopia (blue-blind)
#6E6681
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4bc6;
/* rgb */ color: rgb(126, 75, 198);
/* oklch */ color: oklch(53.4% 0.184 299.1);
Tailwind
colors: {
  custom: {
    50: '#a880d8',
    500: '#7e4bc6',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bc6;
$custom-light: #a880d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bc6",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 198
  },
  "hsl": {
    "h": 264.878,
    "s": 51.899,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53376,
    "c": 0.18384,
    "h": 299.1
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#7E4BC6
secondary
#BBD19C
accent
#DB4CA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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