#4E3778#4E3778

#4E3778 is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.6% C 0.107 H 297.6°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4E3778
RGBrgb(78, 55, 120)
HSLhsl(261, 37%, 34%)
HSVhsv(261, 54%, 47%)
CMYKcmyk(35%, 54.2%, 0%, 52.9%)
CIE-LABlab(28.66, 25.67, -33.67)
CIE-LCHlch(28.66, 42.34, 307.32°)
OKLaboklab(39.57% 0.0498 -0.0951)
OKLCHoklch(39.57% 0.107 297.6)
XYZxyz(7.8974, 5.7080, 18.4513)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3778 #617837
analogous
#374178 #4E3778 #6F3778
triadic
#4E3778 #784E37 #37784E
tetradic
#4E3778 #783741 #617837 #37786F
square
#4E3778 #783741 #617837 #37786F
split-complementary
#4E3778 #786F37 #417837
monochromatic
#171124 #33244E #4E3778 #694AA2 #896DBC

Accessibility & contrast

On white

9.81
#4E3778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E3778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3778
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3778#FFFFFF#000000##FFFFFF
##4E37781.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447A
Deuteranopia (green-blind)
#244376
Tritanopia (blue-blind)
#454452
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3778;
/* rgb */ color: rgb(78, 55, 120);
/* oklch */ color: oklch(39.6% 0.107 297.6);
Tailwind
colors: {
  custom: {
    50: '#826e9f',
    500: '#4e3778',
    950: '#000000',
  },
}
SCSS
$custom: #4e3778;
$custom-light: #826e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3778",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 120
  },
  "hsl": {
    "h": 261.231,
    "s": 37.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.10733,
    "h": 297.6
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#4E3778
secondary
#8FA566
accent
#CD5BA5
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3778

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

Preview Lab → · Contrast checker → · Palette generator →

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