#4E2794#4E2794

#4E2794 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.167 H 293.6°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4E2794
RGBrgb(78, 39, 148)
HSLhsl(261, 58%, 37%)
HSVhsv(261, 74%, 58%)
CMYKcmyk(47.3%, 73.6%, 0%, 42%)
CIE-LABlab(27.32, 42.94, -53.29)
CIE-LCHlch(27.32, 68.44, 308.86°)
OKLaboklab(39.26% 0.0667 -0.1527)
OKLCHoklch(39.26% 0.167 293.6)
XYZxyz(9.2112, 5.2086, 28.5313)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2794 #6D9427
analogous
#273794 #4E2794 #852794
triadic
#4E2794 #944E27 #27944E
tetradic
#4E2794 #942737 #6D9427 #279485
square
#4E2794 #942737 #6D9427 #279485
split-complementary
#4E2794 #948527 #379427
monochromatic
#1B0D33 #341A64 #4E2794 #6834C4 #8A60D5

Accessibility & contrast

On white

10.29
#4E2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2794
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2794#FFFFFF#000000##FFFFFF
##4E27941.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#39435B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2794;
/* rgb */ color: rgb(78, 39, 148);
/* oklch */ color: oklch(39.3% 0.167 293.6);
Tailwind
colors: {
  custom: {
    50: '#8765b4',
    500: '#4e2794',
    950: '#000000',
  },
}
SCSS
$custom: #4e2794;
$custom-light: #8765b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2794",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 261.468,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.16663,
    "h": 293.6
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#4E2794
secondary
#99BB5C
accent
#E246AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2794

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

Preview Lab → · Contrast checker → · Palette generator →

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