#4E388D#4E388D

#4E388D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.135 H 291.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4E388D
RGBrgb(78, 56, 141)
HSLhsl(256, 43%, 39%)
HSVhsv(256, 60%, 55%)
CMYKcmyk(44.7%, 60.3%, 0%, 44.7%)
CIE-LABlab(30.33, 31.22, -44.09)
CIE-LCHlch(30.33, 54.02, 305.30°)
OKLaboklab(41.25% 0.0489 -0.1257)
OKLCHoklch(41.25% 0.135 291.3)
XYZxyz(9.3624, 6.3708, 25.9305)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E388D #778D38
analogous
#384C8D #4E388D #78388D
triadic
#4E388D #8D4E38 #388D4E
tetradic
#4E388D #8D384C #778D38 #388D78
square
#4E388D #8D384C #778D38 #388D78
split-complementary
#4E388D #8D7838 #4C8D38
monochromatic
#1E1535 #362761 #4E388D #674BB7 #8C77C9

Accessibility & contrast

On white

9.23
#4E388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E388D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E388D#FFFFFF#000000##FFFFFF
##4E388D1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#04468B
Tritanopia (blue-blind)
#3C4B5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e388d;
/* rgb */ color: rgb(78, 56, 141);
/* oklch */ color: oklch(41.3% 0.135 291.3);
Tailwind
colors: {
  custom: {
    50: '#846faf',
    500: '#4e388d',
    950: '#000000',
  },
}
SCSS
$custom: #4e388d;
$custom-light: #846faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e388d",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 255.529,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41251,
    "c": 0.13489,
    "h": 291.3
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#4E388D
secondary
#A1B26F
accent
#D355B2
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E388D

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

Preview Lab → · Contrast checker → · Palette generator →

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