#7E4E9B#7E4E9B

#7E4E9B is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.1% C 0.127 H 311.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7E4E9B
RGBrgb(126, 78, 155)
HSLhsl(277, 33%, 46%)
HSVhsv(277, 50%, 61%)
CMYKcmyk(18.7%, 49.7%, 0%, 39.2%)
CIE-LABlab(41.61, 34.72, -34.27)
CIE-LCHlch(41.61, 48.79, 315.37°)
OKLaboklab(51.1% 0.0843 -0.0956)
OKLCHoklch(51.1% 0.127 311.4)
XYZxyz(17.2439, 12.2513, 32.4603)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E9B #6B9B4E
analogous
#584E9B #7E4E9B #9B4E91
triadic
#7E4E9B #9B7E4E #4E9B7E
tetradic
#7E4E9B #9B584E #6B9B4E #4E919B
square
#7E4E9B #9B584E #6B9B4E #4E919B
split-complementary
#7E4E9B #919B4E #4E9B58
monochromatic
#3C254A #5D3A72 #7E4E9B #9C6FB7 #B898CB

Accessibility & contrast

On white

6.09
#7E4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E9B
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E9B#FFFFFF#000000##FFFFFF
##7E4E9B1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C609E
Deuteranopia (green-blind)
#496399
Tritanopia (blue-blind)
#7B5A6D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4e9b;
/* rgb */ color: rgb(126, 78, 155);
/* oklch */ color: oklch(51.1% 0.127 311.4);
Tailwind
colors: {
  custom: {
    50: '#a581b9',
    500: '#7e4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e9b;
$custom-light: #a581b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e9b",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 277.403,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51103,
    "c": 0.12744,
    "h": 311.4
  },
  "luminance": 0.12251
}

Semantic roles & 50–950 ramp

primary
#7E4E9B
secondary
#9DB88D
accent
#C95F87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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