#4E2587#4E2587

#4E2587 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.154 H 297.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4E2587
RGBrgb(78, 37, 135)
HSLhsl(265, 57%, 34%)
HSVhsv(265, 73%, 53%)
CMYKcmyk(42.2%, 72.6%, 0%, 47.1%)
CIE-LABlab(25.84, 40.37, -47.65)
CIE-LCHlch(25.84, 62.45, 310.28°)
OKLaboklab(37.86% 0.0714 -0.1361)
OKLCHoklch(37.86% 0.154 297.7)
XYZxyz(8.1755, 4.6920, 23.3919)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2587 #5E8725
analogous
#252D87 #4E2587 #7F2587
triadic
#4E2587 #874E25 #25874E
tetradic
#4E2587 #87252D #5E8725 #25877F
square
#4E2587 #87252D #5E8725 #25877F
split-complementary
#4E2587 #877F25 #2D8725
monochromatic
#160B27 #321857 #4E2587 #6A32B7 #8956D1

Accessibility & contrast

On white

10.83
#4E2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2587
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2587#FFFFFF#000000##FFFFFF
##4E25871.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2587;
/* rgb */ color: rgb(78, 37, 135);
/* oklch */ color: oklch(37.9% 0.154 297.7);
Tailwind
colors: {
  custom: {
    50: '#8563ab',
    500: '#4e2587',
    950: '#000000',
  },
}
SCSS
$custom: #4e2587;
$custom-light: #8563ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2587",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 265.102,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37858,
    "c": 0.15371,
    "h": 297.7
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#4E2587
secondary
#8CB553
accent
#E048A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2587

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

Preview Lab → · Contrast checker → · Palette generator →

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