#4E1E8C#4E1E8C

#4E1E8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.168 H 297.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4E1E8C
RGBrgb(78, 30, 140)
HSLhsl(266, 65%, 33%)
HSVhsv(266, 79%, 55%)
CMYKcmyk(44.3%, 78.6%, 0%, 45.1%)
CIE-LABlab(25.08, 45.10, -52.00)
CIE-LCHlch(25.08, 68.84, 310.93°)
OKLaboklab(37.46% 0.0769 -0.1489)
OKLCHoklch(37.46% 0.168 297.3)
XYZxyz(8.3385, 4.4415, 25.2238)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E8C #5C8C1E
analogous
#1E258C #4E1E8C #851E8C
triadic
#4E1E8C #8C4E1E #1E8C4E
tetradic
#4E1E8C #8C1E25 #5C8C1E #1E8C85
square
#4E1E8C #8C1E25 #5C8C1E #1E8C85
split-complementary
#4E1E8C #8C851E #258C1E
monochromatic
#160827 #32135A #4E1E8C #6A29BE #894CD9

Accessibility & contrast

On white

11.12
#4E1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E1E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E8C
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E8C#FFFFFF#000000##FFFFFF
##4E1E8C1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3E3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1e8c;
/* rgb */ color: rgb(78, 30, 140);
/* oklch */ color: oklch(37.5% 0.168 297.3);
Tailwind
colors: {
  custom: {
    50: '#8660af',
    500: '#4e1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e8c;
$custom-light: #8660af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e8c",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 266.182,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37458,
    "c": 0.16755,
    "h": 297.3
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#4E1E8C
secondary
#8ABB4B
accent
#E8409F
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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