#4E3785#4E3785

#4E3785 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.125 H 293.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4E3785
RGBrgb(78, 55, 133)
HSLhsl(258, 41%, 37%)
HSVhsv(258, 59%, 52%)
CMYKcmyk(41.4%, 58.6%, 0%, 47.8%)
CIE-LABlab(29.53, 29.45, -40.43)
CIE-LCHlch(29.53, 50.02, 306.07°)
OKLaboklab(40.48% 0.0503 -0.1149)
OKLCHoklch(40.48% 0.125 293.6)
XYZxyz(8.7406, 6.0453, 22.8921)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3785 #6E8537
analogous
#374785 #4E3785 #753785
triadic
#4E3785 #854E37 #37854E
tetradic
#4E3785 #853747 #6E8537 #378575
square
#4E3785 #853747 #6E8537 #378575
split-complementary
#4E3785 #857537 #478537
monochromatic
#1B132E #35255A #4E3785 #6749B0 #8A72C5

Accessibility & contrast

On white

9.51
#4E3785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3785
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3785#FFFFFF#000000##FFFFFF
##4E37851.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4688
Deuteranopia (green-blind)
#154483
Tritanopia (blue-blind)
#404858
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3785;
/* rgb */ color: rgb(78, 55, 133);
/* oklch */ color: oklch(40.5% 0.125 293.6);
Tailwind
colors: {
  custom: {
    50: '#836fa9',
    500: '#4e3785',
    950: '#000000',
  },
}
SCSS
$custom: #4e3785;
$custom-light: #836fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3785",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 133
  },
  "hsl": {
    "h": 257.692,
    "s": 41.489,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.12546,
    "h": 293.6
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#4E3785
secondary
#9AAD6A
accent
#D156AD
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3785

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

Preview Lab → · Contrast checker → · Palette generator →

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