#4E3687#4E3687

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

Color values

HEX#4E3687
RGBrgb(78, 54, 135)
HSLhsl(258, 43%, 37%)
HSVhsv(258, 60%, 53%)
CMYKcmyk(42.2%, 60%, 0%, 47.1%)
CIE-LABlab(29.43, 30.66, -41.83)
CIE-LCHlch(29.43, 51.86, 306.24°)
OKLaboklab(40.46% 0.0515 -0.1191)
OKLCHoklch(40.46% 0.13 293.4)
XYZxyz(8.8331, 6.0071, 23.6111)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3687 #6F8736
analogous
#364787 #4E3687 #773687
triadic
#4E3687 #874E36 #36874E
tetradic
#4E3687 #873647 #6F8736 #368777
square
#4E3687 #873647 #6F8736 #368777
split-complementary
#4E3687 #877736 #478736
monochromatic
#1B1330 #35255B #4E3687 #6747B3 #8A71C6

Accessibility & contrast

On white

9.54
#4E3687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E3687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3687
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3687#FFFFFF#000000##FFFFFF
##4E36871.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03468A
Deuteranopia (green-blind)
#0E4485
Tritanopia (blue-blind)
#3F4859
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3687;
/* rgb */ color: rgb(78, 54, 135);
/* oklch */ color: oklch(40.5% 0.130 293.4);
Tailwind
colors: {
  custom: {
    50: '#846eaa',
    500: '#4e3687',
    950: '#000000',
  },
}
SCSS
$custom: #4e3687;
$custom-light: #846eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3687",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 257.778,
    "s": 42.857,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40455,
    "c": 0.12973,
    "h": 293.4
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#4E3687
secondary
#9AAF6A
accent
#D355AD
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3687

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

Preview Lab → · Contrast checker → · Palette generator →

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