#4E37A5#4E37A5

#4E37A5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.0% C 0.168 H 286.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4E37A5
RGBrgb(78, 55, 165)
HSLhsl(253, 50%, 43%)
HSVhsv(253, 67%, 65%)
CMYKcmyk(52.7%, 66.7%, 0%, 35.3%)
CIE-LABlab(31.96, 39.11, -56.06)
CIE-LCHlch(31.96, 68.36, 304.90°)
OKLaboklab(43.02% 0.0481 -0.1609)
OKLCHoklch(43.02% 0.168 286.6)
XYZxyz(11.2976, 7.0681, 36.3590)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E37A5 #8EA537
analogous
#3757A5 #4E37A5 #8537A5
triadic
#4E37A5 #A54E37 #37A54E
tetradic
#4E37A5 #A53757 #8EA537 #37A585
square
#4E37A5 #A53757 #8EA537 #37A585
split-complementary
#4E37A5 #A58537 #57A537
monochromatic
#231849 #382877 #4E37A5 #6B53C6 #9381D5

Accessibility & contrast

On white

8.70
#4E37A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E37A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E37A5
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E37A5#FFFFFF#000000##FFFFFF
##4E37A51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#2C5269
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e37a5;
/* rgb */ color: rgb(78, 55, 165);
/* oklch */ color: oklch(43.0% 0.168 286.6);
Tailwind
colors: {
  custom: {
    50: '#886fc1',
    500: '#4e37a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e37a5;
$custom-light: #886fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e37a5",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 252.545,
    "s": 50,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43024,
    "c": 0.16794,
    "h": 286.6
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#4E37A5
secondary
#B0BF79
accent
#DA4EBC
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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