#4E3885#4E3885

#4E3885 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.124 H 293.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4E3885
RGBrgb(78, 56, 133)
HSLhsl(257, 41%, 37%)
HSVhsv(257, 58%, 52%)
CMYKcmyk(41.4%, 57.9%, 0%, 47.8%)
CIE-LABlab(29.77, 28.83, -40.05)
CIE-LCHlch(29.77, 49.34, 305.75°)
OKLaboklab(40.66% 0.049 -0.1138)
OKLCHoklch(40.66% 0.124 293.3)
XYZxyz(8.7886, 6.1413, 22.9081)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3885 #6F8538
analogous
#384985 #4E3885 #753885
triadic
#4E3885 #854E38 #38854E
tetradic
#4E3885 #853849 #6F8538 #388575
square
#4E3885 #853849 #6F8538 #388575
split-complementary
#4E3885 #857538 #498538
monochromatic
#1B142F #35265A #4E3885 #674AB0 #8A73C4

Accessibility & contrast

On white

9.42
#4E3885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3885
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3885#FFFFFF#000000##FFFFFF
##4E38851.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104788
Deuteranopia (green-blind)
#174583
Tritanopia (blue-blind)
#404859
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3885;
/* rgb */ color: rgb(78, 56, 133);
/* oklch */ color: oklch(40.7% 0.124 293.3);
Tailwind
colors: {
  custom: {
    50: '#836fa9',
    500: '#4e3885',
    950: '#000000',
  },
}
SCSS
$custom: #4e3885;
$custom-light: #836fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3885",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 133
  },
  "hsl": {
    "h": 257.143,
    "s": 40.741,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.12389,
    "h": 293.3
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#4E3885
secondary
#9AAD6C
accent
#D157AE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3885

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

Preview Lab → · Contrast checker → · Palette generator →

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