#4E37A4#4E37A4

#4E37A4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.167 H 286.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4E37A4
RGBrgb(78, 55, 164)
HSLhsl(253, 50%, 43%)
HSVhsv(253, 66%, 64%)
CMYKcmyk(52.4%, 66.5%, 0%, 35.7%)
CIE-LABlab(31.88, 38.80, -55.59)
CIE-LCHlch(31.88, 67.80, 304.91°)
OKLaboklab(42.94% 0.0482 -0.1595)
OKLCHoklch(42.94% 0.167 286.8)
XYZxyz(11.2069, 7.0319, 35.8815)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E37A4 #8DA437
analogous
#3756A4 #4E37A4 #8537A4
triadic
#4E37A4 #A44E37 #37A44E
tetradic
#4E37A4 #A43756 #8DA437 #37A485
square
#4E37A4 #A43756 #8DA437 #37A485
split-complementary
#4E37A4 #A48537 #56A437
monochromatic
#221848 #382876 #4E37A4 #6B53C5 #9281D5

Accessibility & contrast

On white

8.73
#4E37A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E37A4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E37A4#FFFFFF#000000##FFFFFF
##4E37A41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#2D5268
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e37a4;
/* rgb */ color: rgb(78, 55, 164);
/* oklch */ color: oklch(42.9% 0.167 286.8);
Tailwind
colors: {
  custom: {
    50: '#886fc0',
    500: '#4e37a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e37a4;
$custom-light: #886fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e37a4",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 252.661,
    "s": 49.772,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42939,
    "c": 0.16666,
    "h": 286.8
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#4E37A4
secondary
#AFBE79
accent
#D94FBC
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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