#4E3787#4E3787

#4E3787 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.6% C 0.128 H 293.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4E3787
RGBrgb(78, 55, 135)
HSLhsl(257, 42%, 37%)
HSVhsv(257, 59%, 53%)
CMYKcmyk(42.2%, 59.3%, 0%, 47.1%)
CIE-LABlab(29.67, 30.04, -41.45)
CIE-LCHlch(29.67, 51.19, 305.94°)
OKLaboklab(40.63% 0.0503 -0.1179)
OKLCHoklch(40.63% 0.128 293.1)
XYZxyz(8.8801, 6.1011, 23.6267)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3787 #708737
analogous
#374887 #4E3787 #763787
triadic
#4E3787 #874E37 #37874E
tetradic
#4E3787 #873748 #708737 #378776
square
#4E3787 #873748 #708737 #378776
split-complementary
#4E3787 #877637 #488737
monochromatic
#1C1430 #35255C #4E3787 #6749B2 #8B73C6

Accessibility & contrast

On white

9.46
#4E3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3787
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3787#FFFFFF#000000##FFFFFF
##4E37871.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07478A
Deuteranopia (green-blind)
#114485
Tritanopia (blue-blind)
#3F4859
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3787;
/* rgb */ color: rgb(78, 55, 135);
/* oklch */ color: oklch(40.6% 0.128 293.1);
Tailwind
colors: {
  custom: {
    50: '#846faa',
    500: '#4e3787',
    950: '#000000',
  },
}
SCSS
$custom: #4e3787;
$custom-light: #846faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3787",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 257.25,
    "s": 42.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40628,
    "c": 0.1282,
    "h": 293.1
  },
  "luminance": 0.06101
}

Semantic roles & 50–950 ramp

primary
#4E3787
secondary
#9BAF6B
accent
#D256AE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3787

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

Preview Lab → · Contrast checker → · Palette generator →

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