#4E3780#4E3780

#4E3780 is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.1% C 0.119 H 295.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4E3780
RGBrgb(78, 55, 128)
HSLhsl(259, 40%, 36%)
HSVhsv(259, 57%, 50%)
CMYKcmyk(39.1%, 57%, 0%, 49.8%)
CIE-LABlab(29.19, 27.98, -37.86)
CIE-LCHlch(29.19, 47.08, 306.47°)
OKLaboklab(40.12% 0.0502 -0.1074)
OKLCHoklch(40.12% 0.119 295)
XYZxyz(8.4033, 5.9104, 21.1160)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3780 #698037
analogous
#374480 #4E3780 #723780
triadic
#4E3780 #804E37 #37804E
tetradic
#4E3780 #803744 #698037 #378072
square
#4E3780 #803744 #698037 #378072
split-complementary
#4E3780 #807237 #448037
monochromatic
#1A122A #342555 #4E3780 #6849AB #8A70C2

Accessibility & contrast

On white

9.62
#4E3780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E3780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3780
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3780#FFFFFF#000000##FFFFFF
##4E37801.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#1C447E
Tritanopia (blue-blind)
#424656
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3780;
/* rgb */ color: rgb(78, 55, 128);
/* oklch */ color: oklch(40.1% 0.119 295.0);
Tailwind
colors: {
  custom: {
    50: '#836ea5',
    500: '#4e3780',
    950: '#000000',
  },
}
SCSS
$custom: #4e3780;
$custom-light: #836ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3780",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 128
  },
  "hsl": {
    "h": 258.904,
    "s": 39.891,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4012,
    "c": 0.11854,
    "h": 295
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#4E3780
secondary
#96AA69
accent
#D058AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3780

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

Preview Lab → · Contrast checker → · Palette generator →

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