#4E37A1#4E37A1

#4E37A1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.163 H 287.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4E37A1
RGBrgb(78, 55, 161)
HSLhsl(253, 49%, 42%)
HSVhsv(253, 66%, 63%)
CMYKcmyk(51.6%, 65.8%, 0%, 36.9%)
CIE-LABlab(31.64, 37.89, -54.18)
CIE-LCHlch(31.64, 66.11, 304.96°)
OKLaboklab(42.69% 0.0486 -0.1554)
OKLCHoklch(42.69% 0.163 287.4)
XYZxyz(10.9392, 6.9248, 34.4715)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E37A1 #8AA137
analogous
#3755A1 #4E37A1 #8337A1
triadic
#4E37A1 #A14E37 #37A14E
tetradic
#4E37A1 #A13755 #8AA137 #37A183
square
#4E37A1 #A13755 #8AA137 #37A183
split-complementary
#4E37A1 #A18337 #55A137
monochromatic
#221846 #382773 #4E37A1 #6A51C4 #917FD3

Accessibility & contrast

On white

8.81
#4E37A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E37A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E37A1
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E37A1#FFFFFF#000000##FFFFFF
##4E37A11.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#305167
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e37a1;
/* rgb */ color: rgb(78, 55, 161);
/* oklch */ color: oklch(42.7% 0.163 287.4);
Tailwind
colors: {
  custom: {
    50: '#876fbe',
    500: '#4e37a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e37a1;
$custom-light: #876fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e37a1",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 253.019,
    "s": 49.074,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42686,
    "c": 0.1628,
    "h": 287.4
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#4E37A1
secondary
#AEBD77
accent
#D94FBB
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E37A1

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

Preview Lab → · Contrast checker → · Palette generator →

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