#4E3F8A#4E3F8A

#4E3F8A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.3% C 0.120 H 289.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4E3F8A
RGBrgb(78, 63, 138)
HSLhsl(252, 37%, 39%)
HSVhsv(252, 54%, 54%)
CMYKcmyk(43.5%, 54.3%, 0%, 45.9%)
CIE-LABlab(31.83, 25.93, -39.83)
CIE-LCHlch(31.83, 47.53, 303.07°)
OKLaboklab(42.29% 0.04 -0.1132)
OKLCHoklch(42.29% 0.12 289.5)
XYZxyz(9.5056, 7.0094, 24.8919)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3F8A #7B8A3F
analogous
#3F568A #4E3F8A #743F8A
triadic
#4E3F8A #8A4E3F #3F8A4E
tetradic
#4E3F8A #8A3F56 #7B8A3F #3F8A74
square
#4E3F8A #8A3F56 #7B8A3F #3F8A74
split-complementary
#4E3F8A #8A743F #568A3F
monochromatic
#1F1936 #362C60 #4E3F8A #6755B1 #8D7FC5

Accessibility & contrast

On white

8.74
#4E3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3F8A
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3F8A#FFFFFF#000000##FFFFFF
##4E3F8A1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#1E4988
Tritanopia (blue-blind)
#3D4F5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e3f8a;
/* rgb */ color: rgb(78, 63, 138);
/* oklch */ color: oklch(42.3% 0.120 289.5);
Tailwind
colors: {
  custom: {
    50: '#8374ad',
    500: '#4e3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e3f8a;
$custom-light: #8374ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3f8a",
  "rgb": {
    "r": 78,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 252,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42293,
    "c": 0.12001,
    "h": 289.5
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#4E3F8A
secondary
#A3AF76
accent
#CD5BB6
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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