#4E3771#4E3771

#4E3771 is a dark, moderate violet. Relative luminance 0.055; OKLCH L 39.1% C 0.097 H 300.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4E3771
RGBrgb(78, 55, 113)
HSLhsl(264, 35%, 33%)
HSVhsv(264, 51%, 44%)
CMYKcmyk(31%, 51.3%, 0%, 55.7%)
CIE-LABlab(28.23, 23.69, -29.92)
CIE-LCHlch(28.23, 38.16, 308.37°)
OKLaboklab(39.1% 0.0491 -0.0841)
OKLCHoklch(39.1% 0.097 300.3)
XYZxyz(7.4880, 5.5443, 16.2952)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3771 #5A7137
analogous
#373D71 #4E3771 #6B3771
triadic
#4E3771 #714E37 #37714E
tetradic
#4E3771 #71373D #5A7137 #37716B
square
#4E3771 #71373D #5A7137 #37716B
split-complementary
#4E3771 #716B37 #3D7137
monochromatic
#150F1F #322348 #4E3771 #6A4B9A #896BB7

Accessibility & contrast

On white

9.96
#4E3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3771
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3771#FFFFFF#000000##FFFFFF
##4E37711.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#2A4270
Tritanopia (blue-blind)
#47424E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3771;
/* rgb */ color: rgb(78, 55, 113);
/* oklch */ color: oklch(39.1% 0.097 300.3);
Tailwind
colors: {
  custom: {
    50: '#816e9a',
    500: '#4e3771',
    950: '#000000',
  },
}
SCSS
$custom: #4e3771;
$custom-light: #816e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3771",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 263.793,
    "s": 34.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39104,
    "c": 0.0974,
    "h": 300.3
  },
  "luminance": 0.05544
}

Semantic roles & 50–950 ramp

primary
#4E3771
secondary
#88A064
accent
#CB5D9F
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3771

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

Preview Lab → · Contrast checker → · Palette generator →

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