#4E3581#4E3581

#4E3581 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 39.8% C 0.123 H 295.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4E3581
RGBrgb(78, 53, 129)
HSLhsl(260, 42%, 36%)
HSVhsv(260, 59%, 51%)
CMYKcmyk(39.5%, 58.9%, 0%, 49.4%)
CIE-LABlab(28.77, 29.51, -39.15)
CIE-LCHlch(28.77, 49.02, 307.01°)
OKLaboklab(39.84% 0.0529 -0.1112)
OKLCHoklch(39.84% 0.123 295.4)
XYZxyz(8.3764, 5.7507, 21.4333)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3581 #688135
analogous
#354281 #4E3581 #743581
triadic
#4E3581 #814E35 #35814E
tetradic
#4E3581 #813542 #688135 #358174
square
#4E3581 #813542 #688135 #358174
split-complementary
#4E3581 #817435 #428135
monochromatic
#1A112A #342356 #4E3581 #6847AC #8A6DC3

Accessibility & contrast

On white

9.77
#4E3581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E3581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3581
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3581#FFFFFF#000000##FFFFFF
##4E35811.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4484
Deuteranopia (green-blind)
#17437F
Tritanopia (blue-blind)
#424555
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3581;
/* rgb */ color: rgb(78, 53, 129);
/* oklch */ color: oklch(39.8% 0.123 295.4);
Tailwind
colors: {
  custom: {
    50: '#836da6',
    500: '#4e3581',
    950: '#000000',
  },
}
SCSS
$custom: #4e3581;
$custom-light: #836da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3581",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 259.737,
    "s": 41.758,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39839,
    "c": 0.1231,
    "h": 295.4
  },
  "luminance": 0.05751
}

Semantic roles & 50–950 ramp

primary
#4E3581
secondary
#95AB66
accent
#D256A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3581

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

Preview Lab → · Contrast checker → · Palette generator →

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