#4E36B5#4E36B5

#4E36B5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.189 H 284.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4E36B5
RGBrgb(78, 54, 181)
HSLhsl(251, 54%, 46%)
HSVhsv(251, 70%, 71%)
CMYKcmyk(56.9%, 70.2%, 0%, 29%)
CIE-LABlab(33.12, 44.55, -63.73)
CIE-LCHlch(33.12, 77.76, 304.96°)
OKLaboklab(44.28% 0.0465 -0.1834)
OKLCHoklch(44.28% 0.189 284.2)
XYZxyz(12.7990, 7.5935, 44.4984)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E36B5 #9DB536
analogous
#365DB5 #4E36B5 #8D36B5
triadic
#4E36B5 #B54E36 #36B54E
tetradic
#4E36B5 #B5365D #9DB536 #36B58D
square
#4E36B5 #B5365D #9DB536 #36B58D
split-complementary
#4E36B5 #B58D36 #5DB536
monochromatic
#251A57 #3A2886 #4E36B5 #705ACE #9989DC

Accessibility & contrast

On white

8.34
#4E36B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E36B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E36B5
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E36B5#FFFFFF#000000##FFFFFF
##4E36B51.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#1A5871
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e36b5;
/* rgb */ color: rgb(78, 54, 181);
/* oklch */ color: oklch(44.3% 0.189 284.2);
Tailwind
colors: {
  custom: {
    50: '#8a6fcc',
    500: '#4e36b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e36b5;
$custom-light: #8a6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e36b5",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 181
  },
  "hsl": {
    "h": 251.339,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44279,
    "c": 0.1892,
    "h": 284.2
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#4E36B5
secondary
#B9C681
accent
#DD4AC2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E36B5

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

Preview Lab → · Contrast checker → · Palette generator →

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