#4E2588#4E2588

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

Color values

HEX#4E2588
RGBrgb(78, 37, 136)
HSLhsl(265, 57%, 34%)
HSVhsv(265, 73%, 53%)
CMYKcmyk(42.6%, 72.8%, 0%, 46.7%)
CIE-LABlab(25.92, 40.65, -48.14)
CIE-LCHlch(25.92, 63.00, 310.18°)
OKLaboklab(37.94% 0.0712 -0.1376)
OKLCHoklch(37.94% 0.155 297.4)
XYZxyz(8.2462, 4.7203, 23.7644)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2588 #5F8825
analogous
#252E88 #4E2588 #802588
triadic
#4E2588 #884E25 #25884E
tetradic
#4E2588 #88252E #5F8825 #258880
square
#4E2588 #88252E #5F8825 #258880
split-complementary
#4E2588 #888025 #2E8825
monochromatic
#170B28 #321858 #4E2588 #6A32B8 #8956D1

Accessibility & contrast

On white

10.80
#4E2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2588
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2588#FFFFFF#000000##FFFFFF
##4E25881.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3F3E54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2588;
/* rgb */ color: rgb(78, 37, 136);
/* oklch */ color: oklch(37.9% 0.155 297.4);
Tailwind
colors: {
  custom: {
    50: '#8563ab',
    500: '#4e2588',
    950: '#000000',
  },
}
SCSS
$custom: #4e2588;
$custom-light: #8563ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2588",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 264.848,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37944,
    "c": 0.15489,
    "h": 297.4
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#4E2588
secondary
#8DB653
accent
#E047A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2588

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

Preview Lab → · Contrast checker → · Palette generator →

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