#4E2594#4E2594

#4E2594 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.169 H 293.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2594
RGBrgb(78, 37, 148)
HSLhsl(262, 60%, 36%)
HSVhsv(262, 75%, 58%)
CMYKcmyk(47.3%, 75%, 0%, 42%)
CIE-LABlab(26.96, 43.95, -53.88)
CIE-LCHlch(26.96, 69.53, 309.20°)
OKLaboklab(39% 0.0685 -0.1544)
OKLCHoklch(39% 0.169 293.9)
XYZxyz(9.1473, 5.0807, 28.5099)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2594 #6B9425
analogous
#253494 #4E2594 #862594
triadic
#4E2594 #944E25 #25944E
tetradic
#4E2594 #942534 #6B9425 #259486
square
#4E2594 #942534 #6B9425 #259486
split-complementary
#4E2594 #948625 #349425
monochromatic
#1A0D32 #341963 #4E2594 #6831C5 #8A5DD6

Accessibility & contrast

On white

10.42
#4E2594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2594
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2594#FFFFFF#000000##FFFFFF
##4E25941.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#39425A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2594;
/* rgb */ color: rgb(78, 37, 148);
/* oklch */ color: oklch(39.0% 0.169 293.9);
Tailwind
colors: {
  custom: {
    50: '#8764b4',
    500: '#4e2594',
    950: '#000000',
  },
}
SCSS
$custom: #4e2594;
$custom-light: #8764b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2594",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 148
  },
  "hsl": {
    "h": 262.162,
    "s": 60,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.16894,
    "h": 293.9
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#4E2594
secondary
#97BB59
accent
#E345A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2594

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

Preview Lab → · Contrast checker → · Palette generator →

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