#7E4BBD#7E4BBD

#7E4BBD is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.173 H 301.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E4BBD
RGBrgb(126, 75, 189)
HSLhsl(267, 46%, 52%)
HSVhsv(267, 60%, 74%)
CMYKcmyk(33.3%, 60.3%, 0%, 25.9%)
CIE-LABlab(42.98, 44.68, -52.21)
CIE-LCHlch(42.98, 68.72, 310.56°)
OKLaboklab(52.75% 0.09 -0.148)
OKLCHoklch(52.75% 0.173 301.3)
XYZxyz(20.3034, 13.1418, 49.6012)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BBD #8ABD4B
analogous
#4B51BD #7E4BBD #B74BBD
triadic
#7E4BBD #BD7E4B #4BBD7E
tetradic
#7E4BBD #BD4B51 #8ABD4B #4BBDB7
square
#7E4BBD #BD4B51 #8ABD4B #4BBDB7
split-complementary
#7E4BBD #BDB74B #51BD4B
monochromatic
#432668 #603694 #7E4BBD #9E78CD #BEA5DE

Accessibility & contrast

On white

5.79
#7E4BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7E4BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BBD
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BBD#FFFFFF#000000##FFFFFF
##7E4BBD1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0565C1
Deuteranopia (green-blind)
#2865BA
Tritanopia (blue-blind)
#71637D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4bbd;
/* rgb */ color: rgb(126, 75, 189);
/* oklch */ color: oklch(52.8% 0.173 301.3);
Tailwind
colors: {
  custom: {
    50: '#a780d1',
    500: '#7e4bbd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bbd;
$custom-light: #a780d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bbd",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 189
  },
  "hsl": {
    "h": 266.842,
    "s": 46.341,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52752,
    "c": 0.1732,
    "h": 301.3
  },
  "luminance": 0.13142
}

Semantic roles & 50–950 ramp

primary
#7E4BBD
secondary
#B5CB99
accent
#D6529B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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