#4E3784#4E3784

#4E3784 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.4% C 0.124 H 293.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4E3784
RGBrgb(78, 55, 132)
HSLhsl(258, 41%, 37%)
HSVhsv(258, 58%, 52%)
CMYKcmyk(40.9%, 58.3%, 0%, 48.2%)
CIE-LABlab(29.46, 29.16, -39.92)
CIE-LCHlch(29.46, 49.43, 306.14°)
OKLaboklab(40.41% 0.0503 -0.1134)
OKLCHoklch(40.41% 0.124 293.9)
XYZxyz(8.6718, 6.0178, 22.5300)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3784 #6D8437
analogous
#374784 #4E3784 #753784
triadic
#4E3784 #844E37 #37844E
tetradic
#4E3784 #843747 #6D8437 #378475
square
#4E3784 #843747 #6D8437 #378475
split-complementary
#4E3784 #847537 #478437
monochromatic
#1B132E #342559 #4E3784 #6849AF #8A71C4

Accessibility & contrast

On white

9.53
#4E3784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3784
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3784#FFFFFF#000000##FFFFFF
##4E37841.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4687
Deuteranopia (green-blind)
#164482
Tritanopia (blue-blind)
#404758
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3784;
/* rgb */ color: rgb(78, 55, 132);
/* oklch */ color: oklch(40.4% 0.124 293.9);
Tailwind
colors: {
  custom: {
    50: '#836ea8',
    500: '#4e3784',
    950: '#000000',
  },
}
SCSS
$custom: #4e3784;
$custom-light: #836ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3784",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 257.922,
    "s": 41.176,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40408,
    "c": 0.12408,
    "h": 293.9
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#4E3784
secondary
#99AD6A
accent
#D157AD
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3784

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

Preview Lab → · Contrast checker → · Palette generator →

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