#4E3478#4E3478

#4E3478 is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.0% C 0.112 H 298.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4E3478
RGBrgb(78, 52, 120)
HSLhsl(263, 40%, 34%)
HSVhsv(263, 57%, 47%)
CMYKcmyk(35%, 56.7%, 0%, 52.9%)
CIE-LABlab(27.93, 27.54, -34.84)
CIE-LCHlch(27.93, 44.41, 308.33°)
OKLaboklab(39.02% 0.054 -0.0985)
OKLCHoklch(39.02% 0.112 298.7)
XYZxyz(7.7592, 5.4317, 18.4053)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3478 #5E7834
analogous
#343C78 #4E3478 #703478
triadic
#4E3478 #784E34 #34784E
tetradic
#4E3478 #78343C #5E7834 #347870
square
#4E3478 #78343C #5E7834 #347870
split-complementary
#4E3478 #787034 #3C7834
monochromatic
#160F23 #32214D #4E3478 #6A47A3 #8969BE

Accessibility & contrast

On white

10.07
#4E3478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E3478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3478
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3478#FFFFFF#000000##FFFFFF
##4E34781.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#204176
Tritanopia (blue-blind)
#454250
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e3478;
/* rgb */ color: rgb(78, 52, 120);
/* oklch */ color: oklch(39.0% 0.112 298.7);
Tailwind
colors: {
  custom: {
    50: '#826c9f',
    500: '#4e3478',
    950: '#000000',
  },
}
SCSS
$custom: #4e3478;
$custom-light: #826c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3478",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 120
  },
  "hsl": {
    "h": 262.941,
    "s": 39.535,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39022,
    "c": 0.11236,
    "h": 298.7
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#4E3478
secondary
#8CA662
accent
#CF58A2
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3478

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

Preview Lab → · Contrast checker → · Palette generator →

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