#7E4BBB#7E4BBB

#7E4BBB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.6% C 0.171 H 301.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7E4BBB
RGBrgb(126, 75, 187)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 60%, 73%)
CMYKcmyk(32.6%, 59.9%, 0%, 26.7%)
CIE-LABlab(42.85, 44.18, -51.25)
CIE-LCHlch(42.85, 67.66, 310.76°)
OKLaboklab(52.62% 0.09 -0.1452)
OKLCHoklch(52.62% 0.171 301.8)
XYZxyz(20.0878, 13.0556, 48.4658)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BBB #88BB4B
analogous
#4B50BB #7E4BBB #B64BBB
triadic
#7E4BBB #BB7E4B #4BBB7E
tetradic
#7E4BBB #BB4B50 #88BB4B #4BBBB6
square
#7E4BBB #BB4B50 #88BB4B #4BBBB6
split-complementary
#7E4BBB #BBB64B #50BB4B
monochromatic
#432665 #603792 #7E4BBB #9E77CC #BEA4DD

Accessibility & contrast

On white

5.82
#7E4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7E4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BBB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BBB#FFFFFF#000000##FFFFFF
##7E4BBB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BF
Deuteranopia (green-blind)
#2B65B8
Tritanopia (blue-blind)
#72627C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4bbb;
/* rgb */ color: rgb(126, 75, 187);
/* oklch */ color: oklch(52.6% 0.171 301.8);
Tailwind
colors: {
  custom: {
    50: '#a780d0',
    500: '#7e4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bbb;
$custom-light: #a780d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bbb",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 267.321,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52616,
    "c": 0.17082,
    "h": 301.8
  },
  "luminance": 0.13056
}

Semantic roles & 50–950 ramp

primary
#7E4BBB
secondary
#B3CA98
accent
#D5539A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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