#4E2378#4E2378

#4E2378 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.139 H 303.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4E2378
RGBrgb(78, 35, 120)
HSLhsl(270, 55%, 30%)
HSVhsv(270, 71%, 47%)
CMYKcmyk(35%, 70.8%, 0%, 52.9%)
CIE-LABlab(24.25, 37.40, -40.77)
CIE-LCHlch(24.25, 55.32, 312.54°)
OKLaboklab(36.34% 0.0761 -0.1159)
OKLCHoklch(36.34% 0.139 303.3)
XYZxyz(7.1323, 4.1778, 18.1963)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2378 #4D7823
analogous
#232378 #4E2378 #782377
triadic
#4E2378 #784E23 #23784E
tetradic
#4E2378 #782323 #4D7823 #237778
square
#4E2378 #782323 #4D7823 #237778
split-complementary
#4E2378 #777823 #237823
monochromatic
#100719 #2F1549 #4E2378 #6D31A7 #8B4BCA

Accessibility & contrast

On white

11.44
#4E2378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E2378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2378
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2378#FFFFFF#000000##FFFFFF
##4E23781.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#46364A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2378;
/* rgb */ color: rgb(78, 35, 120);
/* oklch */ color: oklch(36.3% 0.139 303.3);
Tailwind
colors: {
  custom: {
    50: '#8361a0',
    500: '#4e2378',
    950: '#000000',
  },
}
SCSS
$custom: #4e2378;
$custom-light: #8361a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2378",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 270.353,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36344,
    "c": 0.13865,
    "h": 303.3
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#4E2378
secondary
#7BAB4C
accent
#DE4A93
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2378

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

Preview Lab → · Contrast checker → · Palette generator →

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