#7E4BB1#7E4BB1

#7E4BB1 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.159 H 304.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7E4BB1
RGBrgb(126, 75, 177)
HSLhsl(270, 40%, 49%)
HSVhsv(270, 58%, 69%)
CMYKcmyk(28.8%, 57.6%, 0%, 30.6%)
CIE-LABlab(42.22, 41.69, -46.38)
CIE-LCHlch(42.22, 62.36, 311.95°)
OKLaboklab(51.96% 0.0901 -0.1309)
OKLCHoklch(51.96% 0.159 304.5)
XYZxyz(19.0543, 12.6422, 43.0228)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BB1 #7EB14B
analogous
#4B4BB1 #7E4BB1 #B14BB1
triadic
#7E4BB1 #B17E4B #4BB17E
tetradic
#7E4BB1 #B14B4B #7EB14B #4BB1B1
square
#7E4BB1 #B14B4B #7EB14B #4BB1B1
split-complementary
#7E4BB1 #B1B14B #4BB14B
monochromatic
#41275B #5F3986 #7E4BB1 #9D75C4 #BBA0D7

Accessibility & contrast

On white

5.95
#7E4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7E4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BB1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BB1#FFFFFF#000000##FFFFFF
##7E4BB11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B4
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#755F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4bb1;
/* rgb */ color: rgb(126, 75, 177);
/* oklch */ color: oklch(52.0% 0.159 304.5);
Tailwind
colors: {
  custom: {
    50: '#a67fc9',
    500: '#7e4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bb1;
$custom-light: #a67fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bb1",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 270,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51956,
    "c": 0.15889,
    "h": 304.5
  },
  "luminance": 0.12642
}

Semantic roles & 50–950 ramp

primary
#7E4BB1
secondary
#ACC394
accent
#D05794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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