#4E3378#4E3378

#4E3378 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.8% C 0.114 H 299.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4E3378
RGBrgb(78, 51, 120)
HSLhsl(263, 40%, 34%)
HSVhsv(263, 58%, 47%)
CMYKcmyk(35%, 57.5%, 0%, 52.9%)
CIE-LABlab(27.69, 28.17, -35.22)
CIE-LCHlch(27.69, 45.10, 308.65°)
OKLaboklab(38.85% 0.0554 -0.0997)
OKLCHoklch(38.85% 0.114 299.1)
XYZxyz(7.7151, 5.3433, 18.3906)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3378 #5D7833
analogous
#333A78 #4E3378 #703378
triadic
#4E3378 #784E33 #33784E
tetradic
#4E3378 #78333A #5D7833 #337870
square
#4E3378 #78333A #5D7833 #337870
split-complementary
#4E3378 #787033 #3A7833
monochromatic
#160E22 #32214D #4E3378 #6A45A3 #8967BE

Accessibility & contrast

On white

10.15
#4E3378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E3378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3378
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3378#FFFFFF#000000##FFFFFF
##4E33781.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16417A
Deuteranopia (green-blind)
#1F4176
Tritanopia (blue-blind)
#454150
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3378;
/* rgb */ color: rgb(78, 51, 120);
/* oklch */ color: oklch(38.8% 0.114 299.1);
Tailwind
colors: {
  custom: {
    50: '#826c9f',
    500: '#4e3378',
    950: '#000000',
  },
}
SCSS
$custom: #4e3378;
$custom-light: #826c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3378",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 120
  },
  "hsl": {
    "h": 263.478,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.11403,
    "h": 299.1
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#4E3378
secondary
#8BA660
accent
#D058A1
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3378

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

Preview Lab → · Contrast checker → · Palette generator →

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