#4E3688#4E3688

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

Color values

HEX#4E3688
RGBrgb(78, 54, 136)
HSLhsl(258, 43%, 37%)
HSVhsv(258, 60%, 53%)
CMYKcmyk(42.6%, 60.3%, 0%, 46.7%)
CIE-LABlab(29.50, 30.95, -42.33)
CIE-LCHlch(29.50, 52.44, 306.17°)
OKLaboklab(40.53% 0.0515 -0.1205)
OKLCHoklch(40.53% 0.131 293.1)
XYZxyz(8.9038, 6.0354, 23.9836)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3688 #708836
analogous
#364788 #4E3688 #773688
triadic
#4E3688 #884E36 #36884E
tetradic
#4E3688 #883647 #708836 #368877
square
#4E3688 #883647 #708836 #368877
split-complementary
#4E3688 #887736 #478836
monochromatic
#1C1330 #35255C #4E3688 #6747B4 #8B72C7

Accessibility & contrast

On white

9.51
#4E3688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3688
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3688#FFFFFF#000000##FFFFFF
##4E36881.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478B
Deuteranopia (green-blind)
#0C4486
Tritanopia (blue-blind)
#3E4859
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3688;
/* rgb */ color: rgb(78, 54, 136);
/* oklch */ color: oklch(40.5% 0.131 293.1);
Tailwind
colors: {
  custom: {
    50: '#846eab',
    500: '#4e3688',
    950: '#000000',
  },
}
SCSS
$custom: #4e3688;
$custom-light: #846eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3688",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 136
  },
  "hsl": {
    "h": 257.561,
    "s": 43.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4053,
    "c": 0.13109,
    "h": 293.1
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#4E3688
secondary
#9BAF6A
accent
#D355AE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3688

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

Preview Lab → · Contrast checker → · Palette generator →

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