#4E3788#4E3788

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

Color values

HEX#4E3788
RGBrgb(78, 55, 136)
HSLhsl(257, 42%, 37%)
HSVhsv(257, 60%, 53%)
CMYKcmyk(42.6%, 59.6%, 0%, 46.7%)
CIE-LABlab(29.74, 30.34, -41.96)
CIE-LCHlch(29.74, 51.78, 305.87°)
OKLaboklab(40.7% 0.0503 -0.1194)
OKLCHoklch(40.7% 0.13 292.8)
XYZxyz(8.9508, 6.1294, 23.9993)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3788 #718837
analogous
#374988 #4E3788 #763788
triadic
#4E3788 #884E37 #37884E
tetradic
#4E3788 #883749 #718837 #378876
square
#4E3788 #883749 #718837 #378876
split-complementary
#4E3788 #887637 #498837
monochromatic
#1C1431 #35255C #4E3788 #6749B4 #8B73C6

Accessibility & contrast

On white

9.43
#4E3788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3788
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3788#FFFFFF#000000##FFFFFF
##4E37881.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478B
Deuteranopia (green-blind)
#0F4586
Tritanopia (blue-blind)
#3E495A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3788;
/* rgb */ color: rgb(78, 55, 136);
/* oklch */ color: oklch(40.7% 0.130 292.8);
Tailwind
colors: {
  custom: {
    50: '#846fab',
    500: '#4e3788',
    950: '#000000',
  },
}
SCSS
$custom: #4e3788;
$custom-light: #846fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3788",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 257.037,
    "s": 42.408,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40702,
    "c": 0.12957,
    "h": 292.8
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#4E3788
secondary
#9CAF6C
accent
#D256AF
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3788

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

Preview Lab → · Contrast checker → · Palette generator →

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