#4E36A2#4E36A2

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

Color values

HEX#4E36A2
RGBrgb(78, 54, 162)
HSLhsl(253, 50%, 42%)
HSVhsv(253, 67%, 64%)
CMYKcmyk(51.9%, 66.7%, 0%, 36.5%)
CIE-LABlab(31.50, 38.78, -55.01)
CIE-LCHlch(31.50, 67.30, 305.18°)
OKLaboklab(42.61% 0.0495 -0.1578)
OKLCHoklch(42.61% 0.165 287.4)
XYZxyz(10.9807, 6.8661, 34.9221)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E36A2 #8AA236
analogous
#3654A2 #4E36A2 #8436A2
triadic
#4E36A2 #A24E36 #36A24E
tetradic
#4E36A2 #A23654 #8AA236 #36A284
square
#4E36A2 #A23654 #8AA236 #36A284
split-complementary
#4E36A2 #A28436 #54A236
monochromatic
#221746 #382774 #4E36A2 #6A50C5 #917ED4

Accessibility & contrast

On white

8.85
#4E36A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E36A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E36A2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E36A2#FFFFFF#000000##FFFFFF
##4E36A21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e36a2;
/* rgb */ color: rgb(78, 54, 162);
/* oklch */ color: oklch(42.6% 0.165 287.4);
Tailwind
colors: {
  custom: {
    50: '#876fbe',
    500: '#4e36a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e36a2;
$custom-light: #876fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e36a2",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 253.333,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42614,
    "c": 0.16538,
    "h": 287.4
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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