#4E3AAA#4E3AAA

#4E3AAA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.171 H 285.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#4E3AAA
RGBrgb(78, 58, 170)
HSLhsl(251, 49%, 45%)
HSVhsv(251, 66%, 67%)
CMYKcmyk(54.1%, 65.9%, 0%, 33.3%)
CIE-LABlab(33.02, 38.89, -57.34)
CIE-LCHlch(33.02, 69.28, 304.15°)
OKLaboklab(43.92% 0.0445 -0.1646)
OKLCHoklch(43.92% 0.171 285.1)
XYZxyz(11.9085, 7.5474, 38.8517)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AAA #96AA3A
analogous
#3A5EAA #4E3AAA #863AAA
triadic
#4E3AAA #AA4E3A #3AAA4E
tetradic
#4E3AAA #AA3A5E #96AA3A #3AAA86
square
#4E3AAA #AA3A5E #96AA3A #3AAA86
split-complementary
#4E3AAA #AA863A #5EAA3A
monochromatic
#241B4F #392A7C #4E3AAA #6E5AC7 #9688D6

Accessibility & contrast

On white

8.37
#4E3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4E3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AAA
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AAA#FFFFFF#000000##FFFFFF
##4E3AAA1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#27566D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e3aaa;
/* rgb */ color: rgb(78, 58, 170);
/* oklch */ color: oklch(43.9% 0.171 285.1);
Tailwind
colors: {
  custom: {
    50: '#8871c4',
    500: '#4e3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aaa;
$custom-light: #8871c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aaa",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 250.714,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43918,
    "c": 0.17056,
    "h": 285.1
  },
  "luminance": 0.07548
}

Semantic roles & 50–950 ramp

primary
#4E3AAA
secondary
#B5C17F
accent
#D94FC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

#4E3AAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva