#4E3790#4E3790

#4E3790 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.140 H 290.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4E3790
RGBrgb(78, 55, 144)
HSLhsl(256, 45%, 39%)
HSVhsv(256, 62%, 56%)
CMYKcmyk(45.8%, 61.8%, 0%, 43.5%)
CIE-LABlab(30.32, 32.73, -45.96)
CIE-LCHlch(30.32, 56.42, 305.46°)
OKLaboklab(41.31% 0.05 -0.1312)
OKLCHoklch(41.31% 0.14 290.9)
XYZxyz(9.5407, 6.3654, 27.1061)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3790 #799037
analogous
#374D90 #4E3790 #7B3790
triadic
#4E3790 #904E37 #37904E
tetradic
#4E3790 #90374D #799037 #37907B
square
#4E3790 #90374D #799037 #37907B
split-complementary
#4E3790 #907B37 #4D9037
monochromatic
#1E1537 #362664 #4E3790 #674ABA #8C77CB

Accessibility & contrast

On white

9.24
#4E3790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E3790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3790
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3790#FFFFFF#000000##FFFFFF
##4E37901.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004993
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#3A4B5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3790;
/* rgb */ color: rgb(78, 55, 144);
/* oklch */ color: oklch(41.3% 0.140 290.9);
Tailwind
colors: {
  custom: {
    50: '#856fb1',
    500: '#4e3790',
    950: '#000000',
  },
}
SCSS
$custom: #4e3790;
$custom-light: #856fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3790",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 144
  },
  "hsl": {
    "h": 255.506,
    "s": 44.724,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41311,
    "c": 0.14041,
    "h": 290.9
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#4E3790
secondary
#A2B46F
accent
#D453B3
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3790

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

Preview Lab → · Contrast checker → · Palette generator →

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