#4E1E9D#4E1E9D

#4E1E9D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.186 H 292.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4E1E9D
RGBrgb(78, 30, 157)
HSLhsl(263, 68%, 37%)
HSVhsv(263, 81%, 62%)
CMYKcmyk(50.3%, 80.9%, 0%, 38.4%)
CIE-LABlab(26.68, 49.60, -59.85)
CIE-LCHlch(26.68, 77.73, 309.65°)
OKLaboklab(39.07% 0.0716 -0.1719)
OKLCHoklch(39.07% 0.186 292.6)
XYZxyz(9.6903, 4.9822, 32.3428)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E9D #6D9D1E
analogous
#1E2E9D #4E1E9D #8E1E9D
triadic
#4E1E9D #9D4E1E #1E9D4E
tetradic
#4E1E9D #9D1E2E #6D9D1E #1E9D8E
square
#4E1E9D #9D1E2E #6D9D1E #1E9D8E
split-complementary
#4E1E9D #9D8E1E #2E9D1E
monochromatic
#1B0A36 #34146A #4E1E9D #6828D0 #8A57DF

Accessibility & contrast

On white

10.52
#4E1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E9D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E9D#FFFFFF#000000##FFFFFF
##4E1E9D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#34435E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e1e9d;
/* rgb */ color: rgb(78, 30, 157);
/* oklch */ color: oklch(39.1% 0.186 292.6);
Tailwind
colors: {
  custom: {
    50: '#8861bb',
    500: '#4e1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e9d;
$custom-light: #8861bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e9d",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 262.677,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.1862,
    "h": 292.6
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#4E1E9D
secondary
#99C254
accent
#EB3DA9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4E1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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