#4E378B#4E378B

#4E378B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.9% C 0.134 H 292.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4E378B
RGBrgb(78, 55, 139)
HSLhsl(256, 43%, 38%)
HSVhsv(256, 60%, 55%)
CMYKcmyk(43.9%, 60.4%, 0%, 45.5%)
CIE-LABlab(29.95, 31.23, -43.47)
CIE-LCHlch(29.95, 53.53, 305.70°)
OKLaboklab(40.93% 0.0502 -0.1239)
OKLCHoklch(40.93% 0.134 292.1)
XYZxyz(9.1670, 6.2159, 25.1379)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E378B #748B37
analogous
#374A8B #4E378B #78378B
triadic
#4E378B #8B4E37 #378B4E
tetradic
#4E378B #8B374A #748B37 #378B78
square
#4E378B #8B374A #748B37 #378B78
split-complementary
#4E378B #8B7837 #4A8B37
monochromatic
#1D1433 #35265F #4E378B #6748B7 #8B74C8

Accessibility & contrast

On white

9.36
#4E378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E378B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E378B#FFFFFF#000000##FFFFFF
##4E378B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#074589
Tritanopia (blue-blind)
#3D4A5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e378b;
/* rgb */ color: rgb(78, 55, 139);
/* oklch */ color: oklch(40.9% 0.134 292.1);
Tailwind
colors: {
  custom: {
    50: '#846fad',
    500: '#4e378b',
    950: '#000000',
  },
}
SCSS
$custom: #4e378b;
$custom-light: #846fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e378b",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 256.429,
    "s": 43.299,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40928,
    "c": 0.13366,
    "h": 292.1
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

primary
#4E378B
secondary
#9EB16D
accent
#D355B0
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E378B

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

Preview Lab → · Contrast checker → · Palette generator →

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