#4E1786#4E1786

#4E1786 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.168 H 300.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4E1786
RGBrgb(78, 23, 134)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 53%)
CMYKcmyk(41.8%, 82.8%, 0%, 47.5%)
CIE-LABlab(23.52, 46.48, -50.81)
CIE-LCHlch(23.52, 68.87, 312.45°)
OKLaboklab(36.2% 0.0844 -0.1453)
OKLCHoklch(36.2% 0.168 300.2)
XYZxyz(7.7503, 3.9536, 22.9044)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1786 #4F8617
analogous
#171786 #4E1786 #851786
triadic
#4E1786 #864E17 #17864E
tetradic
#4E1786 #861717 #4F8617 #178685
square
#4E1786 #861717 #4F8617 #178685
split-complementary
#4E1786 #868517 #178617
monochromatic
#11051E #300E52 #4E1786 #6C20BA #8B3ADD

Accessibility & contrast

On white

11.73
#4E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1786
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1786#FFFFFF#000000##FFFFFF
##4E17861.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1786;
/* rgb */ color: rgb(78, 23, 134);
/* oklch */ color: oklch(36.2% 0.168 300.2);
Tailwind
colors: {
  custom: {
    50: '#865caa',
    500: '#4e1786',
    950: '#000000',
  },
}
SCSS
$custom: #4e1786;
$custom-light: #865caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1786",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 269.73,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36199,
    "c": 0.16807,
    "h": 300.2
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#4E1786
secondary
#7DBA3F
accent
#ED3A95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1786

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

Preview Lab → · Contrast checker → · Palette generator →

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