#4E36B2#4E36B2

#4E36B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.185 H 284.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#4E36B2
RGBrgb(78, 54, 178)
HSLhsl(252, 53%, 45%)
HSVhsv(252, 70%, 70%)
CMYKcmyk(56.2%, 69.7%, 0%, 30.2%)
CIE-LABlab(32.86, 43.64, -62.38)
CIE-LCHlch(32.86, 76.13, 304.98°)
OKLaboklab(44.01% 0.047 -0.1794)
OKLCHoklch(44.01% 0.186 284.7)
XYZxyz(12.4945, 7.4717, 42.8946)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E36B2 #9AB236
analogous
#365CB2 #4E36B2 #8C36B2
triadic
#4E36B2 #B24E36 #36B24E
tetradic
#4E36B2 #B2365C #9AB236 #36B28C
square
#4E36B2 #B2365C #9AB236 #36B28C
split-complementary
#4E36B2 #B28C36 #5CB236
monochromatic
#251A54 #392883 #4E36B2 #6F59CD #9888DB

Accessibility & contrast

On white

8.42
#4E36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4E36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E36B2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E36B2#FFFFFF#000000##FFFFFF
##4E36B21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#1E5670
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e36b2;
/* rgb */ color: rgb(78, 54, 178);
/* oklch */ color: oklch(44.0% 0.185 284.7);
Tailwind
colors: {
  custom: {
    50: '#8a6fca',
    500: '#4e36b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e36b2;
$custom-light: #8a6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e36b2",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 251.613,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44009,
    "c": 0.1855,
    "h": 284.7
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#4E36B2
secondary
#B7C57F
accent
#DD4BC1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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