#4E3879#4E3879

#4E3879 is a dark, moderate violet. Relative luminance 0.058; OKLCH L 39.8% C 0.107 H 296.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E3879
RGBrgb(78, 56, 121)
HSLhsl(260, 37%, 35%)
HSVhsv(260, 54%, 47%)
CMYKcmyk(35.5%, 53.7%, 0%, 52.5%)
CIE-LABlab(28.98, 25.32, -33.80)
CIE-LCHlch(28.98, 42.23, 306.84°)
OKLaboklab(39.82% 0.0484 -0.0955)
OKLCHoklch(39.82% 0.107 296.9)
XYZxyz(8.0064, 5.8284, 18.7886)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3879 #637938
analogous
#384279 #4E3879 #6F3879
triadic
#4E3879 #794E38 #38794E
tetradic
#4E3879 #793842 #637938 #38796F
square
#4E3879 #793842 #637938 #38796F
split-complementary
#4E3879 #796F38 #427938
monochromatic
#181125 #33254F #4E3879 #694BA3 #896FBC

Accessibility & contrast

On white

9.70
#4E3879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E3879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3879
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3879#FFFFFF#000000##FFFFFF
##4E38791.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457B
Deuteranopia (green-blind)
#254477
Tritanopia (blue-blind)
#444553
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3879;
/* rgb */ color: rgb(78, 56, 121);
/* oklch */ color: oklch(39.8% 0.107 296.9);
Tailwind
colors: {
  custom: {
    50: '#826fa0',
    500: '#4e3879',
    950: '#000000',
  },
}
SCSS
$custom: #4e3879;
$custom-light: #826fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3879",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 121
  },
  "hsl": {
    "h": 260.308,
    "s": 36.723,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.10706,
    "h": 296.9
  },
  "luminance": 0.05829
}

Semantic roles & 50–950 ramp

primary
#4E3879
secondary
#90A567
accent
#CD5BA6
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4E3879

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

Preview Lab → · Contrast checker → · Palette generator →

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