#4E2891#4E2891

#4E2891 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.162 H 294.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E2891
RGBrgb(78, 40, 145)
HSLhsl(262, 57%, 36%)
HSVhsv(262, 72%, 57%)
CMYKcmyk(46.2%, 72.4%, 0%, 43.1%)
CIE-LABlab(27.25, 41.58, -51.57)
CIE-LCHlch(27.25, 66.24, 308.88°)
OKLaboklab(39.12% 0.0663 -0.1477)
OKLCHoklch(39.12% 0.162 294.2)
XYZxyz(9.0101, 5.1814, 27.3080)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2891 #6B9128
analogous
#283791 #4E2891 #832891
triadic
#4E2891 #914E28 #28914E
tetradic
#4E2891 #912837 #6B9128 #289183
square
#4E2891 #912837 #6B9128 #289183
split-complementary
#4E2891 #918328 #379128
monochromatic
#1A0E31 #341B61 #4E2891 #6835C1 #8A60D3

Accessibility & contrast

On white

10.31
#4E2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2891
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2891#FFFFFF#000000##FFFFFF
##4E28911.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#3B435A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2891;
/* rgb */ color: rgb(78, 40, 145);
/* oklch */ color: oklch(39.1% 0.162 294.2);
Tailwind
colors: {
  custom: {
    50: '#8665b2',
    500: '#4e2891',
    950: '#000000',
  },
}
SCSS
$custom: #4e2891;
$custom-light: #8665b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2891",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 261.714,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.16187,
    "h": 294.2
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#4E2891
secondary
#97B95C
accent
#E048A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2891

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

Preview Lab → · Contrast checker → · Palette generator →

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