#4E3F84#4E3F84

#4E3F84 is a dark, moderate violet. Relative luminance 0.068; OKLCH L 41.9% C 0.111 H 290.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4E3F84
RGBrgb(78, 63, 132)
HSLhsl(253, 35%, 38%)
HSVhsv(253, 52%, 52%)
CMYKcmyk(40.9%, 52.3%, 0%, 48.2%)
CIE-LABlab(31.44, 24.11, -36.74)
CIE-LCHlch(31.44, 43.94, 303.27°)
OKLaboklab(41.88% 0.0395 -0.1041)
OKLCHoklch(41.88% 0.111 290.8)
XYZxyz(9.0831, 6.8404, 22.6671)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3F84 #75843F
analogous
#3F5284 #4E3F84 #703F84
triadic
#4E3F84 #844E3F #3F844E
tetradic
#4E3F84 #843F52 #75843F #3F8470
square
#4E3F84 #843F52 #75843F #3F8470
split-complementary
#4E3F84 #84703F #52843F
monochromatic
#1D1731 #362B5B #4E3F84 #6753AD #8B7DC1

Accessibility & contrast

On white

8.87
#4E3F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E3F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3F84
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3F84#FFFFFF#000000##FFFFFF
##4E3F841.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234B86
Deuteranopia (green-blind)
#254882
Tritanopia (blue-blind)
#404D5B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e3f84;
/* rgb */ color: rgb(78, 63, 132);
/* oklch */ color: oklch(41.9% 0.111 290.8);
Tailwind
colors: {
  custom: {
    50: '#8374a8',
    500: '#4e3f84',
    950: '#000000',
  },
}
SCSS
$custom: #4e3f84;
$custom-light: #8374a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3f84",
  "rgb": {
    "r": 78,
    "g": 63,
    "b": 132
  },
  "hsl": {
    "h": 253.043,
    "s": 35.385,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41879,
    "c": 0.11135,
    "h": 290.8
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#4E3F84
secondary
#9FAB74
accent
#CB5CB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E3F84

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

Preview Lab → · Contrast checker → · Palette generator →

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