#4D389E#4D389E

#4D389E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.5% C 0.158 H 287.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4D389E
RGBrgb(77, 56, 158)
HSLhsl(252, 48%, 42%)
HSVhsv(252, 65%, 62%)
CMYKcmyk(51.3%, 64.6%, 0%, 38%)
CIE-LABlab(31.52, 36.19, -52.56)
CIE-LCHlch(31.52, 63.81, 304.55°)
OKLaboklab(42.5% 0.0465 -0.1506)
OKLCHoklch(42.5% 0.158 287.1)
XYZxyz(10.6445, 6.8742, 33.1071)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D389E #899E38
analogous
#38569E #4D389E #80389E
triadic
#4D389E #9E4D38 #389E4D
tetradic
#4D389E #9E3856 #899E38 #389E80
square
#4D389E #9E3856 #899E38 #389E80
split-complementary
#4D389E #9E8038 #569E38
monochromatic
#211844 #372871 #4D389E #6952C2 #907FD2

Accessibility & contrast

On white

8.84
#4D389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4D389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D389E
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D389E#FFFFFF#000000##FFFFFF
##4D389E1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#305166
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d389e;
/* rgb */ color: rgb(77, 56, 158);
/* oklch */ color: oklch(42.5% 0.158 287.1);
Tailwind
colors: {
  custom: {
    50: '#8670bb',
    500: '#4d389e',
    950: '#000000',
  },
}
SCSS
$custom: #4d389e;
$custom-light: #8670bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d389e",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 252.353,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42503,
    "c": 0.15764,
    "h": 287.1
  },
  "luminance": 0.06875
}

Semantic roles & 50–950 ramp

primary
#4D389E
secondary
#ADBB77
accent
#D751BC
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D389E

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

Preview Lab → · Contrast checker → · Palette generator →

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