#4E2591#4E2591

#4E2591 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.165 H 294.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4E2591
RGBrgb(78, 37, 145)
HSLhsl(263, 59%, 36%)
HSVhsv(263, 74%, 57%)
CMYKcmyk(46.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(26.70, 43.12, -52.46)
CIE-LCHlch(26.70, 67.91, 309.42°)
OKLaboklab(38.73% 0.0692 -0.1503)
OKLCHoklch(38.73% 0.165 294.7)
XYZxyz(8.9129, 4.9869, 27.2755)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2591 #689125
analogous
#253291 #4E2591 #842591
triadic
#4E2591 #914E25 #25914E
tetradic
#4E2591 #912532 #689125 #259184
square
#4E2591 #912532 #689125 #259184
split-complementary
#4E2591 #918425 #329125
monochromatic
#1A0C2F #341960 #4E2591 #6831C2 #8A5BD5

Accessibility & contrast

On white

10.51
#4E2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2591
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2591#FFFFFF#000000##FFFFFF
##4E25911.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#3B4159
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2591;
/* rgb */ color: rgb(78, 37, 145);
/* oklch */ color: oklch(38.7% 0.165 294.7);
Tailwind
colors: {
  custom: {
    50: '#8664b2',
    500: '#4e2591',
    950: '#000000',
  },
}
SCSS
$custom: #4e2591;
$custom-light: #8664b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2591",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 262.778,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38733,
    "c": 0.16545,
    "h": 294.7
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#4E2591
secondary
#95BA58
accent
#E345A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2591

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

Preview Lab → · Contrast checker → · Palette generator →

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