#4E36AB#4E36AB

#4E36AB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.4% C 0.177 H 285.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4E36AB
RGBrgb(78, 54, 171)
HSLhsl(252, 52%, 44%)
HSVhsv(252, 68%, 67%)
CMYKcmyk(54.4%, 68.4%, 0%, 32.9%)
CIE-LABlab(32.25, 41.51, -59.19)
CIE-LCHlch(32.25, 72.30, 305.04°)
OKLaboklab(43.39% 0.0482 -0.1701)
OKLCHoklch(43.39% 0.177 285.8)
XYZxyz(11.8095, 7.1977, 39.2872)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E36AB #93AB36
analogous
#3659AB #4E36AB #8936AB
triadic
#4E36AB #AB4E36 #36AB4E
tetradic
#4E36AB #AB3659 #93AB36 #36AB89
square
#4E36AB #AB3659 #93AB36 #36AB89
split-complementary
#4E36AB #AB8936 #59AB36
monochromatic
#24194E #39277C #4E36AB #6D55C9 #9583D8

Accessibility & contrast

On white

8.61
#4E36AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E36AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E36AB
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E36AB#FFFFFF#000000##FFFFFF
##4E36AB1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#27546C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e36ab;
/* rgb */ color: rgb(78, 54, 171);
/* oklch */ color: oklch(43.4% 0.177 285.8);
Tailwind
colors: {
  custom: {
    50: '#896fc5',
    500: '#4e36ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e36ab;
$custom-light: #896fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e36ab",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 252.308,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43389,
    "c": 0.17678,
    "h": 285.8
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#4E36AB
secondary
#B3C27B
accent
#DB4CBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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