#4E397F#4E397F

#4E397F is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.4% C 0.114 H 294.6°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4E397F
RGBrgb(78, 57, 127)
HSLhsl(258, 38%, 36%)
HSVhsv(258, 55%, 50%)
CMYKcmyk(38.6%, 55.1%, 0%, 50.2%)
CIE-LABlab(29.61, 26.43, -36.56)
CIE-LCHlch(29.61, 45.11, 305.87°)
OKLaboklab(40.41% 0.0474 -0.1036)
OKLCHoklch(40.41% 0.114 294.6)
XYZxyz(8.4348, 6.0781, 20.8033)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E397F #6A7F39
analogous
#39477F #4E397F #71397F
triadic
#4E397F #7F4E39 #397F4E
tetradic
#4E397F #7F3947 #6A7F39 #397F71
square
#4E397F #7F3947 #6A7F39 #397F71
split-complementary
#4E397F #7F7139 #477F39
monochromatic
#1A132B #342655 #4E397F #684CA9 #8A72C0

Accessibility & contrast

On white

9.48
#4E397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E397F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E397F#FFFFFF#000000##FFFFFF
##4E397F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#20457D
Tritanopia (blue-blind)
#424756
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e397f;
/* rgb */ color: rgb(78, 57, 127);
/* oklch */ color: oklch(40.4% 0.114 294.6);
Tailwind
colors: {
  custom: {
    50: '#8370a4',
    500: '#4e397f',
    950: '#000000',
  },
}
SCSS
$custom: #4e397f;
$custom-light: #8370a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e397f",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 258,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40412,
    "c": 0.1139,
    "h": 294.6
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#4E397F
secondary
#96A96B
accent
#CE5AAB
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E397F

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

Preview Lab → · Contrast checker → · Palette generator →

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