#7E4DB3#7E4DB3

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

Color values

HEX#7E4DB3
RGBrgb(126, 77, 179)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 57%, 70%)
CMYKcmyk(29.6%, 57%, 0%, 29.8%)
CIE-LABlab(42.76, 41.08, -46.69)
CIE-LCHlch(42.76, 62.19, 311.34°)
OKLaboklab(52.39% 0.0875 -0.1318)
OKLCHoklch(52.39% 0.158 303.6)
XYZxyz(19.3929, 12.9981, 44.1263)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DB3 #82B34D
analogous
#4D4FB3 #7E4DB3 #B14DB3
triadic
#7E4DB3 #B37E4D #4DB37E
tetradic
#7E4DB3 #B34D4F #82B34D #4DB3B1
square
#7E4DB3 #B34D4F #82B34D #4DB3B1
split-complementary
#7E4DB3 #B3B14D #4FB34D
monochromatic
#42285E #603A89 #7E4DB3 #9D78C5 #BCA3D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E4DB3#FFFFFF#000000##FFFFFF
##7E4DB31.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)
#2464B6
Deuteranopia (green-blind)
#3765B1
Tritanopia (blue-blind)
#746178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4db3;
/* rgb */ color: rgb(126, 77, 179);
/* oklch */ color: oklch(52.4% 0.158 303.6);
Tailwind
colors: {
  custom: {
    50: '#a781ca',
    500: '#7e4db3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4db3;
$custom-light: #a781ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4db3",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 268.824,
    "s": 40.157,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.15821,
    "h": 303.6
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

primary
#7E4DB3
secondary
#AFC597
accent
#D05896
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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