#4E1986#4E1986

#4E1986 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.166 H 299.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E1986
RGBrgb(78, 25, 134)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 81%, 53%)
CMYKcmyk(41.8%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.79, 45.69, -50.37)
CIE-LCHlch(23.79, 68.00, 312.21°)
OKLaboklab(36.39% 0.0828 -0.144)
OKLCHoklch(36.39% 0.166 299.9)
XYZxyz(7.7915, 4.0361, 22.9182)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1986 #518619
analogous
#191B86 #4E1986 #841986
triadic
#4E1986 #864E19 #19864E
tetradic
#4E1986 #86191B #518619 #198684
square
#4E1986 #86191B #518619 #198684
split-complementary
#4E1986 #868419 #1B8619
monochromatic
#12061F #300F52 #4E1986 #6C23BA #8B3EDB

Accessibility & contrast

On white

11.62
#4E1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1986
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1986#FFFFFF#000000##FFFFFF
##4E19861.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#413750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1986;
/* rgb */ color: rgb(78, 25, 134);
/* oklch */ color: oklch(36.4% 0.166 299.9);
Tailwind
colors: {
  custom: {
    50: '#865daa',
    500: '#4e1986',
    950: '#000000',
  },
}
SCSS
$custom: #4e1986;
$custom-light: #865daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1986",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 269.174,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36389,
    "c": 0.16615,
    "h": 299.9
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#4E1986
secondary
#7FBA41
accent
#EB3C96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1986

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

Preview Lab → · Contrast checker → · Palette generator →

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