#4E3294#4E3294

#4E3294 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.153 H 291.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4E3294
RGBrgb(78, 50, 148)
HSLhsl(257, 49%, 39%)
HSVhsv(257, 66%, 58%)
CMYKcmyk(47.3%, 66.2%, 0%, 42%)
CIE-LABlab(29.51, 36.90, -49.72)
CIE-LCHlch(29.51, 61.92, 306.58°)
OKLaboklab(40.82% 0.0554 -0.1423)
OKLCHoklch(40.82% 0.153 291.3)
XYZxyz(9.6263, 6.0387, 28.6696)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3294 #789432
analogous
#324794 #4E3294 #7F3294
triadic
#4E3294 #944E32 #32944E
tetradic
#4E3294 #943247 #789432 #32947F
square
#4E3294 #943247 #789432 #32947F
split-complementary
#4E3294 #947F32 #479432
monochromatic
#1E1339 #362366 #4E3294 #6744C0 #8C71CF

Accessibility & contrast

On white

9.51
#4E3294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3294
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3294#FFFFFF#000000##FFFFFF
##4E32941.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#39495E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3294;
/* rgb */ color: rgb(78, 50, 148);
/* oklch */ color: oklch(40.8% 0.153 291.3);
Tailwind
colors: {
  custom: {
    50: '#866cb4',
    500: '#4e3294',
    950: '#000000',
  },
}
SCSS
$custom: #4e3294;
$custom-light: #866cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3294",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 148
  },
  "hsl": {
    "h": 257.143,
    "s": 49.495,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40822,
    "c": 0.15267,
    "h": 291.3
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#4E3294
secondary
#A1B76B
accent
#D94FB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3294

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

Preview Lab → · Contrast checker → · Palette generator →

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