#4E319B#4E319B

#4E319B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.163 H 289.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4E319B
RGBrgb(78, 49, 155)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 68%, 61%)
CMYKcmyk(49.7%, 68.4%, 0%, 39.2%)
CIE-LABlab(29.87, 39.55, -53.42)
CIE-LCHlch(29.87, 66.46, 306.51°)
OKLaboklab(41.26% 0.0555 -0.1531)
OKLCHoklch(41.26% 0.163 289.9)
XYZxyz(10.1549, 6.1825, 31.6623)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319B #7E9B31
analogous
#31499B #4E319B #83319B
triadic
#4E319B #9B4E31 #319B4E
tetradic
#4E319B #9B3149 #7E9B31 #319B83
square
#4E319B #9B3149 #7E9B31 #319B83
split-complementary
#4E319B #9B8331 #499B31
monochromatic
#1F143E #37226D #4E319B #6845C4 #8E73D3

Accessibility & contrast

On white

9.39
#4E319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E319B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319B#FFFFFF#000000##FFFFFF
##4E319B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#344B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e319b;
/* rgb */ color: rgb(78, 49, 155);
/* oklch */ color: oklch(41.3% 0.163 289.9);
Tailwind
colors: {
  custom: {
    50: '#876bb9',
    500: '#4e319b',
    950: '#000000',
  },
}
SCSS
$custom: #4e319b;
$custom-light: #876bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319b",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 256.415,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41258,
    "c": 0.16289,
    "h": 289.9
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#4E319B
secondary
#A6BB6D
accent
#DB4CB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E319B

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

Preview Lab → · Contrast checker → · Palette generator →

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