#4E1884#4E1884

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

Color values

HEX#4E1884
RGBrgb(78, 24, 132)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 82%, 52%)
CMYKcmyk(40.9%, 81.8%, 0%, 48.2%)
CIE-LABlab(23.47, 45.59, -49.64)
CIE-LCHlch(23.47, 67.40, 312.57°)
OKLaboklab(36.11% 0.0843 -0.1419)
OKLCHoklch(36.11% 0.165 300.7)
XYZxyz(7.6323, 3.9388, 22.1835)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1884 #4E8418
analogous
#181884 #4E1884 #841884
triadic
#4E1884 #844E18 #18844E
tetradic
#4E1884 #841818 #4E8418 #188484
square
#4E1884 #841818 #4E8418 #188484
split-complementary
#4E1884 #848418 #188418
monochromatic
#11051C #2F0F50 #4E1884 #6D21B8 #8B3BDB

Accessibility & contrast

On white

11.75
#4E1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1884
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1884#FFFFFF#000000##FFFFFF
##4E18841.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#42364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1884;
/* rgb */ color: rgb(78, 24, 132);
/* oklch */ color: oklch(36.1% 0.165 300.7);
Tailwind
colors: {
  custom: {
    50: '#865ca9',
    500: '#4e1884',
    950: '#000000',
  },
}
SCSS
$custom: #4e1884;
$custom-light: #865ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1884",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 270,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36108,
    "c": 0.16502,
    "h": 300.7
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#4E1884
secondary
#7CB840
accent
#EC3C94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1884

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

Preview Lab → · Contrast checker → · Palette generator →

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