#4E2894#4E2894

#4E2894 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.165 H 293.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4E2894
RGBrgb(78, 40, 148)
HSLhsl(261, 57%, 37%)
HSVhsv(261, 73%, 58%)
CMYKcmyk(47.3%, 73%, 0%, 42%)
CIE-LABlab(27.50, 42.42, -52.99)
CIE-LCHlch(27.50, 67.88, 308.68°)
OKLaboklab(39.39% 0.0657 -0.1518)
OKLCHoklch(39.39% 0.165 293.4)
XYZxyz(9.2445, 5.2751, 28.5424)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2894 #6E9428
analogous
#283894 #4E2894 #842894
triadic
#4E2894 #944E28 #28944E
tetradic
#4E2894 #942838 #6E9428 #289484
square
#4E2894 #942838 #6E9428 #289484
split-complementary
#4E2894 #948428 #389428
monochromatic
#1B0E34 #351B64 #4E2894 #6735C4 #8A62D5

Accessibility & contrast

On white

10.22
#4E2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2894
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2894#FFFFFF#000000##FFFFFF
##4E28941.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#39445B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2894;
/* rgb */ color: rgb(78, 40, 148);
/* oklch */ color: oklch(39.4% 0.165 293.4);
Tailwind
colors: {
  custom: {
    50: '#8665b4',
    500: '#4e2894',
    950: '#000000',
  },
}
SCSS
$custom: #4e2894;
$custom-light: #8665b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2894",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 261.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.16544,
    "h": 293.4
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#4E2894
secondary
#9ABA5E
accent
#E147AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2894

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

Preview Lab → · Contrast checker → · Palette generator →

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