#4E3A82#4E3A82

#4E3A82 is a dark, moderate violet. Relative luminance 0.063; OKLCH L 40.8% C 0.117 H 293.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4E3A82
RGBrgb(78, 58, 130)
HSLhsl(257, 38%, 37%)
HSVhsv(257, 55%, 51%)
CMYKcmyk(40%, 55.4%, 0%, 49%)
CIE-LABlab(30.05, 26.69, -37.72)
CIE-LCHlch(30.05, 46.20, 305.28°)
OKLaboklab(40.8% 0.0462 -0.107)
OKLCHoklch(40.8% 0.117 293.4)
XYZxyz(8.6831, 6.2573, 21.8651)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3A82 #6E823A
analogous
#3A4A82 #4E3A82 #723A82
triadic
#4E3A82 #824E3A #3A824E
tetradic
#4E3A82 #823A4A #6E823A #3A8272
square
#4E3A82 #823A4A #6E823A #3A8272
split-complementary
#4E3A82 #82723A #4A823A
monochromatic
#1B142D #352758 #4E3A82 #674DAC #8A75C1

Accessibility & contrast

On white

9.33
#4E3A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E3A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3A82
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3A82#FFFFFF#000000##FFFFFF
##4E3A821.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4884
Deuteranopia (green-blind)
#1F4680
Tritanopia (blue-blind)
#414958
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3a82;
/* rgb */ color: rgb(78, 58, 130);
/* oklch */ color: oklch(40.8% 0.117 293.4);
Tailwind
colors: {
  custom: {
    50: '#8371a7',
    500: '#4e3a82',
    950: '#000000',
  },
}
SCSS
$custom: #4e3a82;
$custom-light: #8371a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3a82",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 256.667,
    "s": 38.298,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40804,
    "c": 0.11652,
    "h": 293.4
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#4E3A82
secondary
#9AAB6D
accent
#CE5AAE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3A82

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

Preview Lab → · Contrast checker → · Palette generator →

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