#4E2890#4E2890

#4E2890 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.161 H 294.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4E2890
RGBrgb(78, 40, 144)
HSLhsl(262, 57%, 36%)
HSVhsv(262, 72%, 56%)
CMYKcmyk(45.8%, 72.2%, 0%, 43.5%)
CIE-LABlab(27.16, 41.30, -51.09)
CIE-LCHlch(27.16, 65.69, 308.95°)
OKLaboklab(39.03% 0.0665 -0.1462)
OKLCHoklch(39.03% 0.161 294.5)
XYZxyz(8.9334, 5.1507, 26.9036)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2890 #6A9028
analogous
#283690 #4E2890 #822890
triadic
#4E2890 #904E28 #28904E
tetradic
#4E2890 #902836 #6A9028 #289082
square
#4E2890 #902836 #6A9028 #289082
split-complementary
#4E2890 #908228 #369028
monochromatic
#1A0D30 #341B60 #4E2890 #6835C0 #8A60D3

Accessibility & contrast

On white

10.34
#4E2890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2890
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2890#FFFFFF#000000##FFFFFF
##4E28901.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#3B4259
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2890;
/* rgb */ color: rgb(78, 40, 144);
/* oklch */ color: oklch(39.0% 0.161 294.5);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4e2890',
    950: '#000000',
  },
}
SCSS
$custom: #4e2890;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2890",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 261.923,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39034,
    "c": 0.16068,
    "h": 294.5
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#4E2890
secondary
#96B85C
accent
#E048A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2890

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

Preview Lab → · Contrast checker → · Palette generator →

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