#4E3D7B#4E3D7B

#4E3D7B is a dark, moderate violet. Relative luminance 0.064; OKLCH L 40.9% C 0.102 H 294.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4E3D7B
RGBrgb(78, 61, 123)
HSLhsl(256, 34%, 36%)
HSVhsv(256, 50%, 48%)
CMYKcmyk(36.6%, 50.4%, 0%, 51.8%)
CIE-LABlab(30.37, 22.72, -32.84)
CIE-LCHlch(30.37, 39.93, 304.67°)
OKLaboklab(40.9% 0.0414 -0.0927)
OKLCHoklch(40.9% 0.102 294.1)
XYZxyz(8.3849, 6.3871, 19.5261)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3D7B #6A7B3D
analogous
#3D4B7B #4E3D7B #6D3D7B
triadic
#4E3D7B #7B4E3D #3D7B4E
tetradic
#4E3D7B #7B3D4B #6A7B3D #3D7B6D
square
#4E3D7B #7B3D4B #6A7B3D #3D7B6D
split-complementary
#4E3D7B #7B6D3D #4B7B3D
monochromatic
#1A1429 #342952 #4E3D7B #6851A4 #8A77BC

Accessibility & contrast

On white

9.22
#4E3D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E3D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3D7B
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3D7B#FFFFFF#000000##FFFFFF
##4E3D7B1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#2A467A
Tritanopia (blue-blind)
#434956
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3d7b;
/* rgb */ color: rgb(78, 61, 123);
/* oklch */ color: oklch(40.9% 0.102 294.1);
Tailwind
colors: {
  custom: {
    50: '#8273a1',
    500: '#4e3d7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e3d7b;
$custom-light: #8273a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3d7b",
  "rgb": {
    "r": 78,
    "g": 61,
    "b": 123
  },
  "hsl": {
    "h": 256.452,
    "s": 33.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40897,
    "c": 0.10151,
    "h": 294.1
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#4E3D7B
secondary
#96A66E
accent
#CA5EAC
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E3D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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