#4E3C8A#4E3C8A

#4E3C8A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 41.7% C 0.125 H 290.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E3C8A
RGBrgb(78, 60, 138)
HSLhsl(254, 39%, 39%)
HSVhsv(254, 57%, 54%)
CMYKcmyk(43.5%, 56.5%, 0%, 45.9%)
CIE-LABlab(31.08, 27.83, -41.03)
CIE-LCHlch(31.08, 49.57, 304.15°)
OKLaboklab(41.74% 0.0439 -0.1167)
OKLCHoklch(41.74% 0.125 290.6)
XYZxyz(9.3439, 6.6861, 24.8381)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3C8A #788A3C
analogous
#3C518A #4E3C8A #753C8A
triadic
#4E3C8A #8A4E3C #3C8A4E
tetradic
#4E3C8A #8A3C51 #788A3C #3C8A75
square
#4E3C8A #8A3C51 #788A3C #3C8A75
split-complementary
#4E3C8A #8A753C #518A3C
monochromatic
#1E1735 #36295F #4E3C8A #6750B3 #8C7BC6

Accessibility & contrast

On white

8.99
#4E3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3C8A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3C8A#FFFFFF#000000##FFFFFF
##4E3C8A1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8D
Deuteranopia (green-blind)
#184788
Tritanopia (blue-blind)
#3D4D5D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3c8a;
/* rgb */ color: rgb(78, 60, 138);
/* oklch */ color: oklch(41.7% 0.125 290.6);
Tailwind
colors: {
  custom: {
    50: '#8472ad',
    500: '#4e3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e3c8a;
$custom-light: #8472ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3c8a",
  "rgb": {
    "r": 78,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 253.846,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41739,
    "c": 0.12466,
    "h": 290.6
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#4E3C8A
secondary
#A1AF73
accent
#CF59B4
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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