#4E3587#4E3587

#4E3587 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.131 H 293.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4E3587
RGBrgb(78, 53, 135)
HSLhsl(258, 44%, 37%)
HSVhsv(258, 61%, 53%)
CMYKcmyk(42.2%, 60.7%, 0%, 47.1%)
CIE-LABlab(29.20, 31.27, -42.20)
CIE-LCHlch(29.20, 52.53, 306.53°)
OKLaboklab(40.28% 0.0528 -0.1202)
OKLCHoklch(40.28% 0.131 293.7)
XYZxyz(8.7870, 5.9150, 23.5957)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3587 #6E8735
analogous
#354587 #4E3587 #773587
triadic
#4E3587 #874E35 #35874E
tetradic
#4E3587 #873545 #6E8735 #358777
square
#4E3587 #873545 #6E8735 #358777
split-complementary
#4E3587 #877735 #458735
monochromatic
#1B122F #35245B #4E3587 #6746B3 #8A70C7

Accessibility & contrast

On white

9.62
#4E3587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E3587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3587
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3587#FFFFFF#000000##FFFFFF
##4E35871.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#0B4385
Tritanopia (blue-blind)
#3F4758
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3587;
/* rgb */ color: rgb(78, 53, 135);
/* oklch */ color: oklch(40.3% 0.131 293.7);
Tailwind
colors: {
  custom: {
    50: '#846daa',
    500: '#4e3587',
    950: '#000000',
  },
}
SCSS
$custom: #4e3587;
$custom-light: #846daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3587",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 135
  },
  "hsl": {
    "h": 258.293,
    "s": 43.617,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.13125,
    "h": 293.7
  },
  "luminance": 0.05915
}

Semantic roles & 50–950 ramp

primary
#4E3587
secondary
#9AAF69
accent
#D354AD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3587

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

Preview Lab → · Contrast checker → · Palette generator →

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