#4E319F#4E319F

#4E319F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.168 H 289.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4E319F
RGBrgb(78, 49, 159)
HSLhsl(256, 53%, 41%)
HSVhsv(256, 69%, 62%)
CMYKcmyk(50.9%, 69.2%, 0%, 37.6%)
CIE-LABlab(30.20, 40.73, -55.30)
CIE-LCHlch(30.20, 68.68, 306.37°)
OKLaboklab(41.6% 0.0549 -0.1587)
OKLCHoklch(41.6% 0.168 289.1)
XYZxyz(10.4964, 6.3191, 33.4608)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319F #829F31
analogous
#314B9F #4E319F #85319F
triadic
#4E319F #9F4E31 #319F4E
tetradic
#4E319F #9F314B #829F31 #319F85
square
#4E319F #9F314B #829F31 #319F85
split-complementary
#4E319F #9F8531 #4B9F31
monochromatic
#201441 #372370 #4E319F #6847C6 #8F76D5

Accessibility & contrast

On white

9.28
#4E319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E319F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319F#FFFFFF#000000##FFFFFF
##4E319F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#324D64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e319f;
/* rgb */ color: rgb(78, 49, 159);
/* oklch */ color: oklch(41.6% 0.168 289.1);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4e319f',
    950: '#000000',
  },
}
SCSS
$custom: #4e319f;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319f",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 255.818,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41603,
    "c": 0.16789,
    "h": 289.1
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E319F

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

Preview Lab → · Contrast checker → · Palette generator →

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