#4E2586#4E2586

#4E2586 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.153 H 298.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2586
RGBrgb(78, 37, 134)
HSLhsl(265, 57%, 34%)
HSVhsv(265, 72%, 53%)
CMYKcmyk(41.8%, 72.4%, 0%, 47.5%)
CIE-LABlab(25.75, 40.10, -47.16)
CIE-LCHlch(25.75, 61.90, 310.38°)
OKLaboklab(37.77% 0.0716 -0.1347)
OKLCHoklch(37.77% 0.153 298)
XYZxyz(8.1054, 4.6639, 23.0228)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2586 #5D8625
analogous
#252C86 #4E2586 #7E2586
triadic
#4E2586 #864E25 #25864E
tetradic
#4E2586 #86252C #5D8625 #25867E
square
#4E2586 #86252C #5D8625 #25867E
split-complementary
#4E2586 #867E25 #2C8625
monochromatic
#160B26 #321856 #4E2586 #6A32B6 #8955D0

Accessibility & contrast

On white

10.87
#4E2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2586
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2586#FFFFFF#000000##FFFFFF
##4E25861.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#403D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2586;
/* rgb */ color: rgb(78, 37, 134);
/* oklch */ color: oklch(37.8% 0.153 298.0);
Tailwind
colors: {
  custom: {
    50: '#8563aa',
    500: '#4e2586',
    950: '#000000',
  },
}
SCSS
$custom: #4e2586;
$custom-light: #8563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2586",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 265.361,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.15253,
    "h": 298
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#4E2586
secondary
#8BB452
accent
#E048A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4E2586

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

Preview Lab → · Contrast checker → · Palette generator →

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