#4E397E#4E397E

#4E397E is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.3% C 0.112 H 294.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4E397E
RGBrgb(78, 57, 126)
HSLhsl(258, 38%, 36%)
HSVhsv(258, 55%, 49%)
CMYKcmyk(38.1%, 54.8%, 0%, 50.6%)
CIE-LABlab(29.54, 26.14, -36.03)
CIE-LCHlch(29.54, 44.52, 305.96°)
OKLaboklab(40.34% 0.0474 -0.102)
OKLCHoklch(40.34% 0.112 294.9)
XYZxyz(8.3699, 6.0522, 20.4618)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E397E #697E39
analogous
#39467E #4E397E #70397E
triadic
#4E397E #7E4E39 #397E4E
tetradic
#4E397E #7E3946 #697E39 #397E70
square
#4E397E #7E3946 #697E39 #397E70
split-complementary
#4E397E #7E7039 #467E39
monochromatic
#1A132A #342654 #4E397E #684CA8 #8A72BF

Accessibility & contrast

On white

9.50
#4E397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E397E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E397E#FFFFFF#000000##FFFFFF
##4E397E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#22457C
Tritanopia (blue-blind)
#424756
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e397e;
/* rgb */ color: rgb(78, 57, 126);
/* oklch */ color: oklch(40.3% 0.112 294.9);
Tailwind
colors: {
  custom: {
    50: '#8370a4',
    500: '#4e397e',
    950: '#000000',
  },
}
SCSS
$custom: #4e397e;
$custom-light: #8370a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e397e",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 258.261,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40343,
    "c": 0.11248,
    "h": 294.9
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E397E

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

Preview Lab → · Contrast checker → · Palette generator →

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