#4E387F#4E387F

#4E387F is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.116 H 295.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4E387F
RGBrgb(78, 56, 127)
HSLhsl(259, 39%, 36%)
HSVhsv(259, 56%, 50%)
CMYKcmyk(38.6%, 55.9%, 0%, 50.2%)
CIE-LABlab(29.36, 27.06, -36.95)
CIE-LCHlch(29.36, 45.80, 306.22°)
OKLaboklab(40.23% 0.0488 -0.1047)
OKLCHoklch(40.23% 0.116 295)
XYZxyz(8.3858, 5.9802, 20.7870)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E387F #697F38
analogous
#38457F #4E387F #71387F
triadic
#4E387F #7F4E38 #387F4E
tetradic
#4E387F #7F3845 #697F38 #387F71
square
#4E387F #7F3845 #697F38 #387F71
split-complementary
#4E387F #7F7138 #457F38
monochromatic
#1A132A #342555 #4E387F #684BA9 #8A71C0

Accessibility & contrast

On white

9.56
#4E387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E387F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E387F#FFFFFF#000000##FFFFFF
##4E387F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194681
Deuteranopia (green-blind)
#1F447D
Tritanopia (blue-blind)
#424756
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e387f;
/* rgb */ color: rgb(78, 56, 127);
/* oklch */ color: oklch(40.2% 0.116 295.0);
Tailwind
colors: {
  custom: {
    50: '#836fa4',
    500: '#4e387f',
    950: '#000000',
  },
}
SCSS
$custom: #4e387f;
$custom-light: #836fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e387f",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 258.592,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.11552,
    "h": 295
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#4E387F
secondary
#96A969
accent
#CF59AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E387F

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

Preview Lab → · Contrast checker → · Palette generator →

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