#4E1E96#4E1E96

#4E1E96 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.179 H 294.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4E1E96
RGBrgb(78, 30, 150)
HSLhsl(264, 67%, 35%)
HSVhsv(264, 80%, 59%)
CMYKcmyk(48%, 80%, 0%, 41.2%)
CIE-LABlab(26.01, 47.74, -56.67)
CIE-LCHlch(26.01, 74.10, 310.11°)
OKLaboklab(38.39% 0.0739 -0.1626)
OKLCHoklch(38.39% 0.179 294.4)
XYZxyz(9.1097, 4.7500, 29.2851)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E96 #66961E
analogous
#1E2A96 #4E1E96 #8A1E96
triadic
#4E1E96 #964E1E #1E964E
tetradic
#4E1E96 #961E2A #66961E #1E968A
square
#4E1E96 #961E2A #66961E #1E968A
split-complementary
#4E1E96 #968A1E #2A961E
monochromatic
#190A30 #331463 #4E1E96 #6928C9 #8952DC

Accessibility & contrast

On white

10.77
#4E1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E96
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E96#FFFFFF#000000##FFFFFF
##4E1E961.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#38405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e1e96;
/* rgb */ color: rgb(78, 30, 150);
/* oklch */ color: oklch(38.4% 0.179 294.4);
Tailwind
colors: {
  custom: {
    50: '#8760b6',
    500: '#4e1e96',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e96;
$custom-light: #8760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e96",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 264,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38392,
    "c": 0.17856,
    "h": 294.4
  },
  "luminance": 0.0475
}

Semantic roles & 50–950 ramp

primary
#4E1E96
secondary
#93BF50
accent
#EA3EA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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