#7E4DB1#7E4DB1

#7E4DB1 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.156 H 304.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7E4DB1
RGBrgb(126, 77, 177)
HSLhsl(269, 39%, 50%)
HSVhsv(269, 56%, 69%)
CMYKcmyk(28.8%, 56.5%, 0%, 30.6%)
CIE-LABlab(42.64, 40.58, -45.71)
CIE-LCHlch(42.64, 61.13, 311.60°)
OKLaboklab(52.26% 0.0874 -0.1289)
OKLCHoklch(52.26% 0.156 304.1)
XYZxyz(19.1921, 12.9178, 43.0687)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DB1 #80B14D
analogous
#4D4EB1 #7E4DB1 #B04DB1
triadic
#7E4DB1 #B17E4D #4DB17E
tetradic
#7E4DB1 #B14D4E #80B14D #4DB1B0
square
#7E4DB1 #B14D4E #80B14D #4DB1B0
split-complementary
#7E4DB1 #B1B04D #4EB14D
monochromatic
#41285C #603A86 #7E4DB1 #9D77C4 #BCA2D6

Accessibility & contrast

On white

5.86
#7E4DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E4DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DB1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DB1#FFFFFF#000000##FFFFFF
##7E4DB11.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2663B4
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#756077
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4db1;
/* rgb */ color: rgb(126, 77, 177);
/* oklch */ color: oklch(52.3% 0.156 304.1);
Tailwind
colors: {
  custom: {
    50: '#a681c9',
    500: '#7e4db1',
    950: '#000000',
  },
}
SCSS
$custom: #7e4db1;
$custom-light: #a681c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4db1",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 269.4,
    "s": 39.37,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.1558,
    "h": 304.1
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#7E4DB1
secondary
#ADC496
accent
#CF5995
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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