#4E1E7F#4E1E7F

#4E1E7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.153 H 301.6°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4E1E7F
RGBrgb(78, 30, 127)
HSLhsl(270, 62%, 31%)
HSVhsv(270, 76%, 50%)
CMYKcmyk(38.6%, 76.4%, 0%, 50.2%)
CIE-LABlab(23.94, 41.71, -45.72)
CIE-LCHlch(23.94, 61.89, 312.37°)
OKLaboklab(36.3% 0.0802 -0.1304)
OKLCHoklch(36.3% 0.153 301.6)
XYZxyz(7.4360, 4.0805, 20.4704)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E7F #4F7F1E
analogous
#1E1E7F #4E1E7F #7E1E7F
triadic
#4E1E7F #7F4E1E #1E7F4E
tetradic
#4E1E7F #7F1E1E #4F7F1E #1E7F7E
square
#4E1E7F #7F1E1E #4F7F1E #1E7F7E
split-complementary
#4E1E7F #7F7E1E #1E7F1E
monochromatic
#11071C #30124D #4E1E7F #6C2AB1 #8B44D3

Accessibility & contrast

On white

11.56
#4E1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E7F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E7F#FFFFFF#000000##FFFFFF
##4E1E7F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#43364D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1e7f;
/* rgb */ color: rgb(78, 30, 127);
/* oklch */ color: oklch(36.3% 0.153 301.6);
Tailwind
colors: {
  custom: {
    50: '#855fa5',
    500: '#4e1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e7f;
$custom-light: #855fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e7f",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 269.691,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36299,
    "c": 0.15312,
    "h": 301.6
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#4E1E7F
secondary
#7DB247
accent
#E54395
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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