#4E3774#4E3774

#4E3774 is a dark, moderate violet. Relative luminance 0.056; OKLCH L 39.3% C 0.102 H 299.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4E3774
RGBrgb(78, 55, 116)
HSLhsl(263, 36%, 34%)
HSVhsv(263, 53%, 45%)
CMYKcmyk(32.8%, 52.6%, 0%, 54.5%)
CIE-LABlab(28.41, 24.53, -31.54)
CIE-LCHlch(28.41, 39.95, 307.88°)
OKLaboklab(39.3% 0.0494 -0.0889)
OKLCHoklch(39.3% 0.102 299.1)
XYZxyz(7.6597, 5.6130, 17.1995)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3774 #5D7437
analogous
#373E74 #4E3774 #6C3774
triadic
#4E3774 #744E37 #37744E
tetradic
#4E3774 #74373E #5D7437 #37746C
square
#4E3774 #74373E #5D7437 #37746C
split-complementary
#4E3774 #746C37 #3E7437
monochromatic
#161021 #32234A #4E3774 #6A4B9E #896CB9

Accessibility & contrast

On white

9.89
#4E3774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E3774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3774
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3774#FFFFFF#000000##FFFFFF
##4E37741.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224376
Deuteranopia (green-blind)
#284373
Tritanopia (blue-blind)
#464350
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3774;
/* rgb */ color: rgb(78, 55, 116);
/* oklch */ color: oklch(39.3% 0.102 299.1);
Tailwind
colors: {
  custom: {
    50: '#826e9c',
    500: '#4e3774',
    950: '#000000',
  },
}
SCSS
$custom: #4e3774;
$custom-light: #826e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3774",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 116
  },
  "hsl": {
    "h": 262.623,
    "s": 35.673,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.10167,
    "h": 299.1
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

primary
#4E3774
secondary
#8BA265
accent
#CC5CA2
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3774

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

Preview Lab → · Contrast checker → · Palette generator →

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