#4E3D87#4E3D87

#4E3D87 is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.7% C 0.119 H 290.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4E3D87
RGBrgb(78, 61, 135)
HSLhsl(254, 38%, 38%)
HSVhsv(254, 55%, 53%)
CMYKcmyk(42.2%, 54.8%, 0%, 47.1%)
CIE-LABlab(31.13, 26.29, -39.10)
CIE-LCHlch(31.13, 47.11, 303.91°)
OKLaboklab(41.71% 0.0424 -0.111)
OKLCHoklch(41.71% 0.119 290.9)
XYZxyz(9.1826, 6.7062, 23.7276)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3D87 #76873D
analogous
#3D5187 #4E3D87 #733D87
triadic
#4E3D87 #874E3D #3D874E
tetradic
#4E3D87 #873D51 #76873D #3D8773
square
#4E3D87 #873D51 #76873D #3D8773
split-complementary
#4E3D87 #87733D #51873D
monochromatic
#1D1733 #362A5D #4E3D87 #6751B0 #8C7BC3

Accessibility & contrast

On white

8.97
#4E3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3D87
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3D87#FFFFFF#000000##FFFFFF
##4E3D871.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8A
Deuteranopia (green-blind)
#1E4885
Tritanopia (blue-blind)
#3E4C5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3d87;
/* rgb */ color: rgb(78, 61, 135);
/* oklch */ color: oklch(41.7% 0.119 290.9);
Tailwind
colors: {
  custom: {
    50: '#8373aa',
    500: '#4e3d87',
    950: '#000000',
  },
}
SCSS
$custom: #4e3d87;
$custom-light: #8373aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3d87",
  "rgb": {
    "r": 78,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 253.784,
    "s": 37.755,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.11886,
    "h": 290.9
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#4E3D87
secondary
#A0AD73
accent
#CE5AB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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