#4E319C#4E319C

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

Color values

HEX#4E319C
RGBrgb(78, 49, 156)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 69%, 61%)
CMYKcmyk(50%, 68.6%, 0%, 38.8%)
CIE-LABlab(29.95, 39.84, -53.89)
CIE-LCHlch(29.95, 67.02, 306.48°)
OKLaboklab(41.34% 0.0554 -0.1545)
OKLCHoklch(41.34% 0.164 289.7)
XYZxyz(10.2392, 6.2162, 32.1064)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319C #7F9C31
analogous
#31499C #4E319C #84319C
triadic
#4E319C #9C4E31 #319C4E
tetradic
#4E319C #9C3149 #7F9C31 #319C84
square
#4E319C #9C3149 #7F9C31 #319C84
split-complementary
#4E319C #9C8431 #499C31
monochromatic
#1F143F #37226D #4E319C #6845C5 #8E74D3

Accessibility & contrast

On white

9.36
#4E319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E319C
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319C#FFFFFF#000000##FFFFFF
##4E319C1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#344C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e319c;
/* rgb */ color: rgb(78, 49, 156);
/* oklch */ color: oklch(41.3% 0.164 289.7);
Tailwind
colors: {
  custom: {
    50: '#876bba',
    500: '#4e319c',
    950: '#000000',
  },
}
SCSS
$custom: #4e319c;
$custom-light: #876bba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319c",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 256.262,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.16414,
    "h": 289.7
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E319C

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

Preview Lab → · Contrast checker → · Palette generator →

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