#4E3580#4E3580

#4E3580 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.8% C 0.122 H 295.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4E3580
RGBrgb(78, 53, 128)
HSLhsl(260, 41%, 35%)
HSVhsv(260, 59%, 50%)
CMYKcmyk(39.1%, 58.6%, 0%, 49.8%)
CIE-LABlab(28.71, 29.22, -38.63)
CIE-LCHlch(28.71, 48.44, 307.11°)
OKLaboklab(39.77% 0.0529 -0.1097)
OKLCHoklch(39.77% 0.122 295.7)
XYZxyz(8.3103, 5.7243, 21.0849)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3580 #678035
analogous
#354180 #4E3580 #733580
triadic
#4E3580 #804E35 #35804E
tetradic
#4E3580 #803541 #678035 #358073
square
#4E3580 #803541 #678035 #358073
split-complementary
#4E3580 #807335 #418035
monochromatic
#191129 #342355 #4E3580 #6847AB #896DC3

Accessibility & contrast

On white

9.79
#4E3580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E3580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3580
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3580#FFFFFF#000000##FFFFFF
##4E35801.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4482
Deuteranopia (green-blind)
#18437E
Tritanopia (blue-blind)
#424555
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3580;
/* rgb */ color: rgb(78, 53, 128);
/* oklch */ color: oklch(39.8% 0.122 295.7);
Tailwind
colors: {
  custom: {
    50: '#836da5',
    500: '#4e3580',
    950: '#000000',
  },
}
SCSS
$custom: #4e3580;
$custom-light: #836da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3580",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 128
  },
  "hsl": {
    "h": 260,
    "s": 41.436,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39766,
    "c": 0.12174,
    "h": 295.7
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#4E3580
secondary
#94AB66
accent
#D157A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3580

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

Preview Lab → · Contrast checker → · Palette generator →

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