#4E1785#4E1785

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

Color values

HEX#4E1785
RGBrgb(78, 23, 133)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 52%)
CMYKcmyk(41.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(23.42, 46.23, -50.34)
CIE-LCHlch(23.42, 68.35, 312.57°)
OKLaboklab(36.11% 0.0848 -0.1439)
OKLCHoklch(36.11% 0.167 300.5)
XYZxyz(7.6809, 3.9259, 22.5389)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1785 #4E8517
analogous
#171785 #4E1785 #851785
triadic
#4E1785 #854E17 #17854E
tetradic
#4E1785 #851717 #4E8517 #178585
square
#4E1785 #851717 #4E8517 #178585
split-complementary
#4E1785 #858517 #178517
monochromatic
#11051D #2F0E51 #4E1785 #6D20B9 #8B3ADD

Accessibility & contrast

On white

11.76
#4E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1785
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1785#FFFFFF#000000##FFFFFF
##4E17851.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1785;
/* rgb */ color: rgb(78, 23, 133);
/* oklch */ color: oklch(36.1% 0.167 300.5);
Tailwind
colors: {
  custom: {
    50: '#865ca9',
    500: '#4e1785',
    950: '#000000',
  },
}
SCSS
$custom: #4e1785;
$custom-light: #865ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1785",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 270,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36106,
    "c": 0.16703,
    "h": 300.5
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#4E1785
secondary
#7CB93F
accent
#ED3B94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1785

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

Preview Lab → · Contrast checker → · Palette generator →

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