#4E388B#4E388B

#4E388B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.1% C 0.132 H 291.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4E388B
RGBrgb(78, 56, 139)
HSLhsl(256, 43%, 38%)
HSVhsv(256, 60%, 55%)
CMYKcmyk(43.9%, 59.7%, 0%, 45.5%)
CIE-LABlab(30.19, 30.62, -43.09)
CIE-LCHlch(30.19, 52.86, 305.40°)
OKLaboklab(41.1% 0.049 -0.1228)
OKLCHoklch(41.1% 0.132 291.7)
XYZxyz(9.2150, 6.3118, 25.1539)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E388B #758B38
analogous
#384B8B #4E388B #77388B
triadic
#4E388B #8B4E38 #388B4E
tetradic
#4E388B #8B384B #758B38 #388B77
square
#4E388B #8B384B #758B38 #388B77
split-complementary
#4E388B #8B7738 #4B8B38
monochromatic
#1D1534 #36265F #4E388B #674AB6 #8B76C8

Accessibility & contrast

On white

9.28
#4E388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E388B
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E388B#FFFFFF#000000##FFFFFF
##4E388B1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488E
Deuteranopia (green-blind)
#0A4589
Tritanopia (blue-blind)
#3D4A5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e388b;
/* rgb */ color: rgb(78, 56, 139);
/* oklch */ color: oklch(41.1% 0.132 291.7);
Tailwind
colors: {
  custom: {
    50: '#846fad',
    500: '#4e388b',
    950: '#000000',
  },
}
SCSS
$custom: #4e388b;
$custom-light: #846fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e388b",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 255.904,
    "s": 42.564,
    "l": 38.235
  },
  "oklch": {
    "l": 0.411,
    "c": 0.13216,
    "h": 291.7
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#4E388B
secondary
#9FB16E
accent
#D255B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E388B

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

Preview Lab → · Contrast checker → · Palette generator →

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