#7E4DBA#7E4DBA

#7E4DBA is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.8% C 0.167 H 301.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7E4DBA
RGBrgb(126, 77, 186)
HSLhsl(267, 44%, 52%)
HSVhsv(267, 59%, 73%)
CMYKcmyk(32.3%, 58.6%, 0%, 27.1%)
CIE-LABlab(43.19, 42.83, -50.10)
CIE-LCHlch(43.19, 65.92, 310.53°)
OKLaboklab(52.85% 0.0875 -0.1418)
OKLCHoklch(52.85% 0.167 301.7)
XYZxyz(20.1189, 13.2885, 47.9499)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DBA #89BA4D
analogous
#4D53BA #7E4DBA #B54DBA
triadic
#7E4DBA #BA7E4D #4DBA7E
tetradic
#7E4DBA #BA4D53 #89BA4D #4DBAB5
square
#7E4DBA #BA4D53 #89BA4D #4DBAB5
split-complementary
#7E4DBA #BAB54D #53BA4D
monochromatic
#432765 #603891 #7E4DBA #9E79CB #BEA5DC

Accessibility & contrast

On white

5.74
#7E4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7E4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DBA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DBA#FFFFFF#000000##FFFFFF
##7E4DBA1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BE
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#72637C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4dba;
/* rgb */ color: rgb(126, 77, 186);
/* oklch */ color: oklch(52.8% 0.167 301.7);
Tailwind
colors: {
  custom: {
    50: '#a781cf',
    500: '#7e4dba',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dba;
$custom-light: #a781cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dba",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 266.972,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5285,
    "c": 0.16666,
    "h": 301.7
  },
  "luminance": 0.13289
}

Semantic roles & 50–950 ramp

primary
#7E4DBA
secondary
#B4C999
accent
#D4549A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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