#4E387E#4E387E

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

Color values

HEX#4E387E
RGBrgb(78, 56, 126)
HSLhsl(259, 38%, 36%)
HSVhsv(259, 56%, 49%)
CMYKcmyk(38.1%, 55.6%, 0%, 50.6%)
CIE-LABlab(29.30, 26.77, -36.43)
CIE-LCHlch(29.30, 45.21, 306.31°)
OKLaboklab(40.16% 0.0487 -0.1032)
OKLCHoklch(40.16% 0.114 295.3)
XYZxyz(8.3210, 5.9543, 20.4455)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E387E #687E38
analogous
#38457E #4E387E #71387E
triadic
#4E387E #7E4E38 #387E4E
tetradic
#4E387E #7E3845 #687E38 #387E71
square
#4E387E #7E3845 #687E38 #387E71
split-complementary
#4E387E #7E7138 #457E38
monochromatic
#1A1229 #342554 #4E387E #684BA8 #8A71C0

Accessibility & contrast

On white

9.59
#4E387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E387E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E387E#FFFFFF#000000##FFFFFF
##4E387E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4680
Deuteranopia (green-blind)
#20447C
Tritanopia (blue-blind)
#434655
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e387e;
/* rgb */ color: rgb(78, 56, 126);
/* oklch */ color: oklch(40.2% 0.114 295.3);
Tailwind
colors: {
  custom: {
    50: '#836fa4',
    500: '#4e387e',
    950: '#000000',
  },
}
SCSS
$custom: #4e387e;
$custom-light: #836fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e387e",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 258.857,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40159,
    "c": 0.11412,
    "h": 295.3
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#4E387E
secondary
#95A969
accent
#CE59AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E387E

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

Preview Lab → · Contrast checker → · Palette generator →

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