#4E37A2#4E37A2

#4E37A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.164 H 287.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4E37A2
RGBrgb(78, 55, 162)
HSLhsl(253, 49%, 43%)
HSVhsv(253, 66%, 64%)
CMYKcmyk(51.9%, 66%, 0%, 36.5%)
CIE-LABlab(31.72, 38.19, -54.65)
CIE-LCHlch(31.72, 66.68, 304.95°)
OKLaboklab(42.77% 0.0485 -0.1568)
OKLCHoklch(42.77% 0.164 287.2)
XYZxyz(11.0277, 6.9602, 34.9378)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E37A2 #8BA237
analogous
#3756A2 #4E37A2 #8337A2
triadic
#4E37A2 #A24E37 #37A24E
tetradic
#4E37A2 #A23756 #8BA237 #37A283
square
#4E37A2 #A23756 #8BA237 #37A283
split-complementary
#4E37A2 #A28337 #56A237
monochromatic
#221847 #382774 #4E37A2 #6B52C4 #9280D4

Accessibility & contrast

On white

8.78
#4E37A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E37A2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E37A2#FFFFFF#000000##FFFFFF
##4E37A21.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#2F5167
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e37a2;
/* rgb */ color: rgb(78, 55, 162);
/* oklch */ color: oklch(42.8% 0.164 287.2);
Tailwind
colors: {
  custom: {
    50: '#876fbe',
    500: '#4e37a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e37a2;
$custom-light: #876fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e37a2",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 252.897,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.16409,
    "h": 287.2
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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