#4E1E7E#4E1E7E

#4E1E7E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.152 H 302.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4E1E7E
RGBrgb(78, 30, 126)
HSLhsl(270, 62%, 31%)
HSVhsv(270, 76%, 49%)
CMYKcmyk(38.1%, 76.2%, 0%, 50.6%)
CIE-LABlab(23.85, 41.45, -45.22)
CIE-LCHlch(23.85, 61.35, 312.51°)
OKLaboklab(36.21% 0.0804 -0.129)
OKLCHoklch(36.21% 0.152 302)
XYZxyz(7.3711, 4.0546, 20.1289)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E7E #4E7E1E
analogous
#1E1E7E #4E1E7E #7E1E7E
triadic
#4E1E7E #7E4E1E #1E7E4E
tetradic
#4E1E7E #7E1E1E #4E7E1E #1E7E7E
square
#4E1E7E #7E1E1E #4E7E1E #1E7E7E
split-complementary
#4E1E7E #7E7E1E #1E7E1E
monochromatic
#11061B #2F124D #4E1E7E #6D2AAF #8B44D2

Accessibility & contrast

On white

11.60
#4E1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E7E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E7E#FFFFFF#000000##FFFFFF
##4E1E7E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#44364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1e7e;
/* rgb */ color: rgb(78, 30, 126);
/* oklch */ color: oklch(36.2% 0.152 302.0);
Tailwind
colors: {
  custom: {
    50: '#845fa4',
    500: '#4e1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e7e;
$custom-light: #845fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e7e",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.152,
    "h": 302
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#4E1E7E
secondary
#7CB147
accent
#E54394
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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