#4E397A#4E397A

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

Color values

HEX#4E397A
RGBrgb(78, 57, 122)
HSLhsl(259, 36%, 35%)
HSVhsv(259, 53%, 48%)
CMYKcmyk(36.1%, 53.3%, 0%, 52.2%)
CIE-LABlab(29.29, 24.98, -33.93)
CIE-LCHlch(29.29, 42.13, 306.36°)
OKLaboklab(40.07% 0.0471 -0.0959)
OKLCHoklch(40.07% 0.107 296.1)
XYZxyz(8.1170, 5.9510, 19.1296)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E397A #657A39
analogous
#39447A #4E397A #6F397A
triadic
#4E397A #7A4E39 #397A4E
tetradic
#4E397A #7A3944 #657A39 #397A6F
square
#4E397A #7A3944 #657A39 #397A6F
split-complementary
#4E397A #7A6F39 #447A39
monochromatic
#191227 #332650 #4E397A #694CA4 #8971BD

Accessibility & contrast

On white

9.59
#4E397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E397A
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E397A#FFFFFF#000000##FFFFFF
##4E397A1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457C
Deuteranopia (green-blind)
#254478
Tritanopia (blue-blind)
#444654
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e397a;
/* rgb */ color: rgb(78, 57, 122);
/* oklch */ color: oklch(40.1% 0.107 296.1);
Tailwind
colors: {
  custom: {
    50: '#8270a1',
    500: '#4e397a',
    950: '#000000',
  },
}
SCSS
$custom: #4e397a;
$custom-light: #8270a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e397a",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 259.385,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.1068,
    "h": 296.1
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#4E397A
secondary
#92A669
accent
#CC5BA8
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4E397A

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

Preview Lab → · Contrast checker → · Palette generator →

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