#4E397B#4E397B

#4E397B is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.1% C 0.108 H 295.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4E397B
RGBrgb(78, 57, 123)
HSLhsl(259, 37%, 35%)
HSVhsv(259, 54%, 48%)
CMYKcmyk(36.6%, 53.7%, 0%, 51.8%)
CIE-LABlab(29.35, 25.27, -34.46)
CIE-LCHlch(29.35, 42.73, 306.25°)
OKLaboklab(40.14% 0.0471 -0.0974)
OKLCHoklch(40.14% 0.108 295.8)
XYZxyz(8.1793, 5.9759, 19.4576)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E397B #667B39
analogous
#39457B #4E397B #6F397B
triadic
#4E397B #7B4E39 #397B4E
tetradic
#4E397B #7B3945 #667B39 #397B6F
square
#4E397B #7B3945 #667B39 #397B6F
split-complementary
#4E397B #7B6F39 #457B39
monochromatic
#191227 #332651 #4E397B #694CA5 #8971BD

Accessibility & contrast

On white

9.57
#4E397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E397B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E397B#FFFFFF#000000##FFFFFF
##4E397B1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#244479
Tritanopia (blue-blind)
#444654
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e397b;
/* rgb */ color: rgb(78, 57, 123);
/* oklch */ color: oklch(40.1% 0.108 295.8);
Tailwind
colors: {
  custom: {
    50: '#8270a1',
    500: '#4e397b',
    950: '#000000',
  },
}
SCSS
$custom: #4e397b;
$custom-light: #8270a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e397b",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 259.091,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40138,
    "c": 0.10823,
    "h": 295.8
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#4E397B
secondary
#93A669
accent
#CD5BA9
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E397B

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

Preview Lab → · Contrast checker → · Palette generator →

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