#4E378C#4E378C

#4E378C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.0% C 0.135 H 291.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E378C
RGBrgb(78, 55, 140)
HSLhsl(256, 44%, 38%)
HSVhsv(256, 61%, 55%)
CMYKcmyk(44.3%, 60.7%, 0%, 45.1%)
CIE-LABlab(30.02, 31.53, -43.97)
CIE-LCHlch(30.02, 54.11, 305.65°)
OKLaboklab(41% 0.0502 -0.1253)
OKLCHoklch(41% 0.135 291.8)
XYZxyz(9.2404, 6.2452, 25.5244)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E378C #758C37
analogous
#374A8C #4E378C #78378C
triadic
#4E378C #8C4E37 #378C4E
tetradic
#4E378C #8C374A #758C37 #378C78
square
#4E378C #8C374A #758C37 #378C78
split-complementary
#4E378C #8C7837 #4A8C37
monochromatic
#1D1434 #362660 #4E378C #6749B7 #8B75C9

Accessibility & contrast

On white

9.34
#4E378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E378C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E378C#FFFFFF#000000##FFFFFF
##4E378C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#04458A
Tritanopia (blue-blind)
#3C4A5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e378c;
/* rgb */ color: rgb(78, 55, 140);
/* oklch */ color: oklch(41.0% 0.135 291.8);
Tailwind
colors: {
  custom: {
    50: '#846fae',
    500: '#4e378c',
    950: '#000000',
  },
}
SCSS
$custom: #4e378c;
$custom-light: #846fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e378c",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 256.235,
    "s": 43.59,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41004,
    "c": 0.13502,
    "h": 291.8
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#4E378C
secondary
#9FB16D
accent
#D354B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E378C

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

Preview Lab → · Contrast checker → · Palette generator →

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