#4E319E#4E319E

#4E319E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.167 H 289.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4E319E
RGBrgb(78, 49, 158)
HSLhsl(256, 53%, 41%)
HSVhsv(256, 69%, 62%)
CMYKcmyk(50.6%, 69%, 0%, 38%)
CIE-LABlab(30.12, 40.44, -54.83)
CIE-LCHlch(30.12, 68.13, 306.41°)
OKLaboklab(41.52% 0.055 -0.1573)
OKLCHoklch(41.52% 0.167 289.3)
XYZxyz(10.4100, 6.2845, 33.0056)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319E #819E31
analogous
#314B9E #4E319E #84319E
triadic
#4E319E #9E4E31 #319E4E
tetradic
#4E319E #9E314B #819E31 #319E84
square
#4E319E #9E314B #819E31 #319E84
split-complementary
#4E319E #9E8431 #4B9E31
monochromatic
#201441 #37236F #4E319E #6846C6 #8E75D4

Accessibility & contrast

On white

9.30
#4E319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E319E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319E#FFFFFF#000000##FFFFFF
##4E319E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#324C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e319e;
/* rgb */ color: rgb(78, 49, 158);
/* oklch */ color: oklch(41.5% 0.167 289.3);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4e319e',
    950: '#000000',
  },
}
SCSS
$custom: #4e319e;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319e",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 255.963,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41517,
    "c": 0.16664,
    "h": 289.3
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#4E319E
secondary
#A8BC6E
accent
#DC4CB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E319E

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

Preview Lab → · Contrast checker → · Palette generator →

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