#4E3A9D#4E3A9D

#4E3A9D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.8% C 0.154 H 287.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4E3A9D
RGBrgb(78, 58, 157)
HSLhsl(252, 46%, 42%)
HSVhsv(252, 63%, 62%)
CMYKcmyk(50.3%, 63.1%, 0%, 38.4%)
CIE-LABlab(31.99, 34.88, -51.19)
CIE-LCHlch(31.99, 61.94, 304.27°)
OKLaboklab(42.84% 0.0458 -0.1466)
OKLCHoklch(42.84% 0.154 287.3)
XYZxyz(10.7390, 7.0796, 32.6924)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3A9D #899D3A
analogous
#3A589D #4E3A9D #803A9D
triadic
#4E3A9D #9D4E3A #3A9D4E
tetradic
#4E3A9D #9D3A58 #899D3A #3A9D80
square
#4E3A9D #9D3A58 #899D3A #3A9D80
split-complementary
#4E3A9D #9D803A #589D3A
monochromatic
#221944 #382970 #4E3A9D #6A54C0 #9181D0

Accessibility & contrast

On white

8.69
#4E3A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E3A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3A9D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3A9D#FFFFFF#000000##FFFFFF
##4E3A9D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#325166
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e3a9d;
/* rgb */ color: rgb(78, 58, 157);
/* oklch */ color: oklch(42.8% 0.154 287.3);
Tailwind
colors: {
  custom: {
    50: '#8671bb',
    500: '#4e3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e3a9d;
$custom-light: #8671bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3a9d",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 252.121,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.15356,
    "h": 287.3
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#4E3A9D
secondary
#ADBA79
accent
#D652BB
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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