#4E3795#4E3795

#4E3795 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.7% C 0.147 H 289.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#4E3795
RGBrgb(78, 55, 149)
HSLhsl(255, 46%, 40%)
HSVhsv(255, 63%, 58%)
CMYKcmyk(47.7%, 63.1%, 0%, 41.6%)
CIE-LABlab(30.69, 34.24, -48.42)
CIE-LCHlch(30.69, 59.30, 305.27°)
OKLaboklab(41.71% 0.0497 -0.1384)
OKLCHoklch(41.71% 0.147 289.8)
XYZxyz(9.9313, 6.5216, 29.1635)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3795 #7E9537
analogous
#374F95 #4E3795 #7D3795
triadic
#4E3795 #954E37 #37954E
tetradic
#4E3795 #95374F #7E9537 #37957D
square
#4E3795 #95374F #7E9537 #37957D
split-complementary
#4E3795 #957D37 #4F9537
monochromatic
#1F163C #372768 #4E3795 #684CBD #8E79CD

Accessibility & contrast

On white

9.11
#4E3795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E3795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3795
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3795#FFFFFF#000000##FFFFFF
##4E37951.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#384D60
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3795;
/* rgb */ color: rgb(78, 55, 149);
/* oklch */ color: oklch(41.7% 0.147 289.8);
Tailwind
colors: {
  custom: {
    50: '#856fb5',
    500: '#4e3795',
    950: '#000000',
  },
}
SCSS
$custom: #4e3795;
$custom-light: #856fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3795",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 254.681,
    "s": 46.078,
    "l": 40
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.14708,
    "h": 289.8
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#4E3795
secondary
#A6B671
accent
#D652B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3795

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

Preview Lab → · Contrast checker → · Palette generator →

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