#4E3781#4E3781

#4E3781 is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.2% C 0.120 H 294.8°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4E3781
RGBrgb(78, 55, 129)
HSLhsl(259, 40%, 36%)
HSVhsv(259, 57%, 51%)
CMYKcmyk(39.5%, 57.4%, 0%, 49.4%)
CIE-LABlab(29.25, 28.27, -38.38)
CIE-LCHlch(29.25, 47.67, 306.38°)
OKLaboklab(40.19% 0.0502 -0.1089)
OKLCHoklch(40.19% 0.12 294.8)
XYZxyz(8.4695, 5.9369, 21.4643)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3781 #6A8137
analogous
#374581 #4E3781 #733781
triadic
#4E3781 #814E37 #37814E
tetradic
#4E3781 #813745 #6A8137 #378173
square
#4E3781 #813745 #6A8137 #378173
split-complementary
#4E3781 #817337 #458137
monochromatic
#1A122B #342556 #4E3781 #6849AC #8A70C2

Accessibility & contrast

On white

9.60
#4E3781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3781
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3781#FFFFFF#000000##FFFFFF
##4E37811.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144683
Deuteranopia (green-blind)
#1B447F
Tritanopia (blue-blind)
#414656
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3781;
/* rgb */ color: rgb(78, 55, 129);
/* oklch */ color: oklch(40.2% 0.120 294.8);
Tailwind
colors: {
  custom: {
    50: '#836ea6',
    500: '#4e3781',
    950: '#000000',
  },
}
SCSS
$custom: #4e3781;
$custom-light: #836ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3781",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 258.649,
    "s": 40.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40191,
    "c": 0.11993,
    "h": 294.8
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#4E3781
secondary
#96AB69
accent
#D058AB
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3781

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

Preview Lab → · Contrast checker → · Palette generator →

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