#4E3D97#4E3D97

#4E3D97 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 42.9% C 0.141 H 287.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4E3D97
RGBrgb(78, 61, 151)
HSLhsl(251, 42%, 42%)
HSVhsv(251, 60%, 59%)
CMYKcmyk(48.3%, 59.6%, 0%, 40.8%)
CIE-LABlab(32.24, 31.19, -47.14)
CIE-LCHlch(32.24, 56.52, 303.49°)
OKLaboklab(42.88% 0.0427 -0.1346)
OKLCHoklch(42.88% 0.141 287.6)
XYZxyz(10.3949, 7.1911, 30.1125)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3D97 #86973D
analogous
#3D5997 #4E3D97 #7B3D97
triadic
#4E3D97 #974E3D #3D974E
tetradic
#4E3D97 #973D59 #86973D #3D977B
square
#4E3D97 #973D59 #86973D #3D977B
split-complementary
#4E3D97 #977B3D #59973D
monochromatic
#211A40 #372B6B #4E3D97 #6956BB #9082CC

Accessibility & contrast

On white

8.61
#4E3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E3D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3D97
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3D97#FFFFFF#000000##FFFFFF
##4E3D971.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#365164
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e3d97;
/* rgb */ color: rgb(78, 61, 151);
/* oklch */ color: oklch(42.9% 0.141 287.6);
Tailwind
colors: {
  custom: {
    50: '#8573b6',
    500: '#4e3d97',
    950: '#000000',
  },
}
SCSS
$custom: #4e3d97;
$custom-light: #8573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3d97",
  "rgb": {
    "r": 78,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 251.333,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42884,
    "c": 0.14125,
    "h": 287.6
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#4E3D97
secondary
#ABB779
accent
#D256BB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #4E3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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