#4E1886#4E1886

#4E1886 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.167 H 300.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4E1886
RGBrgb(78, 24, 134)
HSLhsl(269, 70%, 31%)
HSVhsv(269, 82%, 53%)
CMYKcmyk(41.8%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.65, 46.09, -50.59)
CIE-LCHlch(23.65, 68.44, 312.34°)
OKLaboklab(36.29% 0.0837 -0.1447)
OKLCHoklch(36.29% 0.167 300)
XYZxyz(7.7705, 3.9941, 22.9112)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1886 #508618
analogous
#181986 #4E1886 #851886
triadic
#4E1886 #864E18 #18864E
tetradic
#4E1886 #861819 #508618 #188685
square
#4E1886 #861819 #508618 #188685
split-complementary
#4E1886 #868518 #198618
monochromatic
#12051E #300F52 #4E1886 #6C21BA #8B3CDC

Accessibility & contrast

On white

11.67
#4E1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1886
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1886#FFFFFF#000000##FFFFFF
##4E18861.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#41374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1886;
/* rgb */ color: rgb(78, 24, 134);
/* oklch */ color: oklch(36.3% 0.167 300.0);
Tailwind
colors: {
  custom: {
    50: '#865caa',
    500: '#4e1886',
    950: '#000000',
  },
}
SCSS
$custom: #4e1886;
$custom-light: #865caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1886",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 269.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36293,
    "c": 0.16713,
    "h": 300
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#4E1886
secondary
#7EBA40
accent
#EC3B96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1886

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

Preview Lab → · Contrast checker → · Palette generator →

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