#4E379C#4E379C

#4E379C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.156 H 288.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#4E379C
RGBrgb(78, 55, 156)
HSLhsl(254, 48%, 41%)
HSVhsv(254, 65%, 61%)
CMYKcmyk(50%, 64.7%, 0%, 38.8%)
CIE-LABlab(31.24, 36.37, -51.80)
CIE-LCHlch(31.24, 63.29, 305.07°)
OKLaboklab(42.27% 0.0491 -0.1484)
OKLCHoklch(42.27% 0.156 288.3)
XYZxyz(10.5071, 6.7519, 32.1957)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E379C #859C37
analogous
#37539C #4E379C #81379C
triadic
#4E379C #9C4E37 #379C4E
tetradic
#4E379C #9C3753 #859C37 #379C81
square
#4E379C #9C3753 #859C37 #379C81
split-complementary
#4E379C #9C8137 #539C37
monochromatic
#211742 #37276F #4E379C #694FC1 #907CD1

Accessibility & contrast

On white

8.93
#4E379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E379C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E379C
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E379C#FFFFFF#000000##FFFFFF
##4E379C1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#334F64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e379c;
/* rgb */ color: rgb(78, 55, 156);
/* oklch */ color: oklch(42.3% 0.156 288.3);
Tailwind
colors: {
  custom: {
    50: '#866fba',
    500: '#4e379c',
    950: '#000000',
  },
}
SCSS
$custom: #4e379c;
$custom-light: #866fba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e379c",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 253.663,
    "s": 47.867,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.15631,
    "h": 288.3
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#4E379C
secondary
#AABA75
accent
#D750B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E379C

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

Preview Lab → · Contrast checker → · Palette generator →

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