#4E2D78#4E2D78

#4E2D78 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.8% C 0.124 H 300.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4E2D78
RGBrgb(78, 45, 120)
HSLhsl(266, 45%, 32%)
HSVhsv(266, 63%, 47%)
CMYKcmyk(35%, 62.5%, 0%, 52.9%)
CIE-LABlab(26.31, 31.80, -37.44)
CIE-LCHlch(26.31, 49.12, 310.34°)
OKLaboklab(37.83% 0.0636 -0.1062)
OKLCHoklch(37.83% 0.124 300.9)
XYZxyz(7.4696, 4.8525, 18.3088)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D78 #57782D
analogous
#2D3178 #4E2D78 #742D78
triadic
#4E2D78 #784E2D #2D784E
tetradic
#4E2D78 #782D31 #57782D #2D7874
square
#4E2D78 #782D31 #57782D #2D7874
split-complementary
#4E2D78 #78742D #31782D
monochromatic
#140C1F #311C4B #4E2D78 #6B3EA5 #8A5DC2

Accessibility & contrast

On white

10.66
#4E2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D78
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D78#FFFFFF#000000##FFFFFF
##4E2D781.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7A
Deuteranopia (green-blind)
#153E76
Tritanopia (blue-blind)
#453D4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2d78;
/* rgb */ color: rgb(78, 45, 120);
/* oklch */ color: oklch(37.8% 0.124 300.9);
Tailwind
colors: {
  custom: {
    50: '#83689f',
    500: '#4e2d78',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d78;
$custom-light: #83689f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d78",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 266.4,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37833,
    "c": 0.12375,
    "h": 300.9
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#4E2D78
secondary
#85A958
accent
#D5539C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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