#7E4ABB#7E4ABB

#7E4ABB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.5% C 0.172 H 302.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7E4ABB
RGBrgb(126, 74, 187)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(32.6%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.64, 44.72, -51.57)
CIE-LCHlch(42.64, 68.26, 310.93°)
OKLaboklab(52.47% 0.0912 -0.1461)
OKLCHoklch(52.47% 0.172 302)
XYZxyz(20.0205, 12.9210, 48.4433)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ABB #87BB4A
analogous
#4A4EBB #7E4ABB #B74ABB
triadic
#7E4ABB #BB7E4A #4ABB7E
tetradic
#7E4ABB #BB4A4E #87BB4A #4ABBB7
square
#7E4ABB #BB4A4E #87BB4A #4ABBB7
split-complementary
#7E4ABB #BBB74A #4EBB4A
monochromatic
#432665 #603791 #7E4ABB #9E76CC #BDA3DC

Accessibility & contrast

On white

5.86
#7E4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ABB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ABB#FFFFFF#000000##FFFFFF
##7E4ABB1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0764BF
Deuteranopia (green-blind)
#2964B8
Tritanopia (blue-blind)
#72617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4abb;
/* rgb */ color: rgb(126, 74, 187);
/* oklch */ color: oklch(52.5% 0.172 302.0);
Tailwind
colors: {
  custom: {
    50: '#a77fd0',
    500: '#7e4abb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4abb;
$custom-light: #a77fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4abb",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 267.611,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52468,
    "c": 0.17228,
    "h": 302
  },
  "luminance": 0.12921
}

Semantic roles & 50–950 ramp

primary
#7E4ABB
secondary
#B2C997
accent
#D55399
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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