#4E1686#4E1686

#4E1686 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.169 H 300.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E1686
RGBrgb(78, 22, 134)
HSLhsl(270, 72%, 31%)
HSVhsv(270, 84%, 53%)
CMYKcmyk(41.8%, 83.6%, 0%, 47.5%)
CIE-LABlab(23.39, 46.86, -51.03)
CIE-LCHlch(23.39, 69.28, 312.57°)
OKLaboklab(36.11% 0.0852 -0.1459)
OKLCHoklch(36.11% 0.169 300.3)
XYZxyz(7.7308, 3.9147, 22.8979)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1686 #4E8616
analogous
#161686 #4E1686 #861686
triadic
#4E1686 #864E16 #16864E
tetradic
#4E1686 #861616 #4E8616 #168686
square
#4E1686 #861616 #4E8616 #168686
split-complementary
#4E1686 #868616 #168616
monochromatic
#11051D #2F0D51 #4E1686 #6D1FBB #8B38DE

Accessibility & contrast

On white

11.78
#4E1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1686
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1686#FFFFFF#000000##FFFFFF
##4E16861.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1686;
/* rgb */ color: rgb(78, 22, 134);
/* oklch */ color: oklch(36.1% 0.169 300.3);
Tailwind
colors: {
  custom: {
    50: '#865caa',
    500: '#4e1686',
    950: '#000000',
  },
}
SCSS
$custom: #4e1686;
$custom-light: #865caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1686",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 270,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36109,
    "c": 0.16898,
    "h": 300.3
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#4E1686
secondary
#7CBA3E
accent
#EF3994
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1686

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

Preview Lab → · Contrast checker → · Palette generator →

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