#4E36A0#4E36A0

#4E36A0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.163 H 287.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4E36A0
RGBrgb(78, 54, 160)
HSLhsl(254, 50%, 42%)
HSVhsv(254, 66%, 63%)
CMYKcmyk(51.2%, 66.3%, 0%, 37.3%)
CIE-LABlab(31.34, 38.17, -54.06)
CIE-LCHlch(31.34, 66.18, 305.22°)
OKLaboklab(42.45% 0.0497 -0.155)
OKLCHoklch(42.45% 0.163 287.8)
XYZxyz(10.8044, 6.7956, 33.9933)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E36A0 #88A036
analogous
#3653A0 #4E36A0 #8336A0
triadic
#4E36A0 #A04E36 #36A04E
tetradic
#4E36A0 #A03653 #88A036 #36A083
square
#4E36A0 #A03653 #88A036 #36A083
split-complementary
#4E36A0 #A08336 #53A036
monochromatic
#211744 #382772 #4E36A0 #6A4FC4 #917DD3

Accessibility & contrast

On white

8.90
#4E36A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E36A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E36A0
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E36A0#FFFFFF#000000##FFFFFF
##4E36A01.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#305066
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e36a0;
/* rgb */ color: rgb(78, 54, 160);
/* oklch */ color: oklch(42.4% 0.163 287.8);
Tailwind
colors: {
  custom: {
    50: '#876ebd',
    500: '#4e36a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e36a0;
$custom-light: #876ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e36a0",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 160
  },
  "hsl": {
    "h": 253.585,
    "s": 49.533,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42445,
    "c": 0.16281,
    "h": 287.8
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#4E36A0
secondary
#ACBC75
accent
#D94FBA
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E36A0

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

Preview Lab → · Contrast checker → · Palette generator →

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