#4E319D#4E319D

#4E319D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.165 H 289.5°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4E319D
RGBrgb(78, 49, 157)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 69%, 62%)
CMYKcmyk(50.3%, 68.8%, 0%, 38.4%)
CIE-LABlab(30.04, 40.14, -54.36)
CIE-LCHlch(30.04, 67.58, 306.44°)
OKLaboklab(41.43% 0.0552 -0.1559)
OKLCHoklch(41.43% 0.165 289.5)
XYZxyz(10.3243, 6.2502, 32.5542)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319D #809D31
analogous
#314A9D #4E319D #84319D
triadic
#4E319D #9D4E31 #319D4E
tetradic
#4E319D #9D314A #809D31 #319D84
square
#4E319D #9D314A #809D31 #319D84
split-complementary
#4E319D #9D8431 #4A9D31
monochromatic
#201440 #37226E #4E319D #6846C5 #8E75D4

Accessibility & contrast

On white

9.33
#4E319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E319D
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319D#FFFFFF#000000##FFFFFF
##4E319D1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#334C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e319d;
/* rgb */ color: rgb(78, 49, 157);
/* oklch */ color: oklch(41.4% 0.165 289.5);
Tailwind
colors: {
  custom: {
    50: '#876bbb',
    500: '#4e319d',
    950: '#000000',
  },
}
SCSS
$custom: #4e319d;
$custom-light: #876bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319d",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 256.111,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4143,
    "c": 0.16539,
    "h": 289.5
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#4E319D
secondary
#A7BC6E
accent
#DC4CB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E319D

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

Preview Lab → · Contrast checker → · Palette generator →

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