#4E388A#4E388A

#4E388A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.0% C 0.131 H 292.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4E388A
RGBrgb(78, 56, 138)
HSLhsl(256, 42%, 38%)
HSVhsv(256, 59%, 54%)
CMYKcmyk(43.5%, 59.4%, 0%, 45.9%)
CIE-LABlab(30.11, 30.32, -42.58)
CIE-LCHlch(30.11, 52.28, 305.45°)
OKLaboklab(41.03% 0.049 -0.1213)
OKLCHoklch(41.03% 0.131 292)
XYZxyz(9.1423, 6.2828, 24.7708)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E388A #748A38
analogous
#384B8A #4E388A #77388A
triadic
#4E388A #8A4E38 #388A4E
tetradic
#4E388A #8A384B #748A38 #388A77
square
#4E388A #8A384B #748A38 #388A77
split-complementary
#4E388A #8A7738 #4B8A38
monochromatic
#1D1533 #35265E #4E388A #674AB5 #8B75C7

Accessibility & contrast

On white

9.31
#4E388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E388A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E388A#FFFFFF#000000##FFFFFF
##4E388A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04488D
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#3D4A5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e388a;
/* rgb */ color: rgb(78, 56, 138);
/* oklch */ color: oklch(41.0% 0.131 292.0);
Tailwind
colors: {
  custom: {
    50: '#846fad',
    500: '#4e388a',
    950: '#000000',
  },
}
SCSS
$custom: #4e388a;
$custom-light: #846fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e388a",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 256.098,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.13079,
    "h": 292
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#4E388A
secondary
#9EB06E
accent
#D256B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E388A

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

Preview Lab → · Contrast checker → · Palette generator →

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