#7E4BBA#7E4BBA

#7E4BBA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.170 H 302.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E4BBA
RGBrgb(126, 75, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(32.3%, 59.7%, 0%, 27.1%)
CIE-LABlab(42.78, 43.93, -50.76)
CIE-LCHlch(42.78, 67.13, 310.87°)
OKLaboklab(52.55% 0.09 -0.1438)
OKLCHoklch(52.55% 0.17 302.1)
XYZxyz(19.9811, 13.0129, 47.9039)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BBA #87BA4B
analogous
#4B4FBA #7E4BBA #B54BBA
triadic
#7E4BBA #BA7E4B #4BBA7E
tetradic
#7E4BBA #BA4B4F #87BA4B #4BBAB5
square
#7E4BBA #BA4B4F #87BA4B #4BBAB5
split-complementary
#7E4BBA #BAB54B #4FBA4B
monochromatic
#432664 #603790 #7E4BBA #9E77CB #BDA3DC

Accessibility & contrast

On white

5.83
#7E4BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7E4BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BBA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BBA#FFFFFF#000000##FFFFFF
##7E4BBA1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1064BE
Deuteranopia (green-blind)
#2C65B7
Tritanopia (blue-blind)
#72627B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4bba;
/* rgb */ color: rgb(126, 75, 186);
/* oklch */ color: oklch(52.5% 0.170 302.1);
Tailwind
colors: {
  custom: {
    50: '#a780cf',
    500: '#7e4bba',
    950: '#000000',
  },
}
SCSS
$custom: #7e4bba;
$custom-light: #a780cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4bba",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 267.568,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52549,
    "c": 0.16963,
    "h": 302.1
  },
  "luminance": 0.13013
}

Semantic roles & 50–950 ramp

primary
#7E4BBA
secondary
#B2C998
accent
#D45499
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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