#4E1788#4E1788

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

Color values

HEX#4E1788
RGBrgb(78, 23, 136)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 53%)
CMYKcmyk(42.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.70, 46.98, -51.76)
CIE-LCHlch(23.70, 69.90, 312.23°)
OKLaboklab(36.39% 0.0838 -0.1481)
OKLCHoklch(36.39% 0.17 299.5)
XYZxyz(7.8911, 4.0100, 23.6460)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1788 #518817
analogous
#171888 #4E1788 #861788
triadic
#4E1788 #884E17 #17884E
tetradic
#4E1788 #881718 #518817 #178886
square
#4E1788 #881718 #518817 #178886
split-complementary
#4E1788 #888617 #188817
monochromatic
#12051F #300E54 #4E1788 #6C20BC #8B3BDE

Accessibility & contrast

On white

11.65
#4E1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1788
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1788#FFFFFF#000000##FFFFFF
##4E17881.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#403750
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1788;
/* rgb */ color: rgb(78, 23, 136);
/* oklch */ color: oklch(36.4% 0.170 299.5);
Tailwind
colors: {
  custom: {
    50: '#865cac',
    500: '#4e1788',
    950: '#000000',
  },
}
SCSS
$custom: #4e1788;
$custom-light: #865cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1788",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 269.204,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36386,
    "c": 0.17016,
    "h": 299.5
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#4E1788
secondary
#7FBC3F
accent
#EE3A96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1788

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

Preview Lab → · Contrast checker → · Palette generator →

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