#4E3096#4E3096

#4E3096 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.158 H 291.3°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4E3096
RGBrgb(78, 48, 150)
HSLhsl(258, 52%, 39%)
HSVhsv(258, 68%, 59%)
CMYKcmyk(48%, 68%, 0%, 41.2%)
CIE-LABlab(29.25, 38.64, -51.37)
CIE-LCHlch(29.25, 64.28, 306.95°)
OKLaboklab(40.68% 0.0573 -0.1471)
OKLCHoklch(40.68% 0.158 291.3)
XYZxyz(9.7023, 5.9353, 29.4827)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3096 #789630
analogous
#304596 #4E3096 #813096
triadic
#4E3096 #964E30 #30964E
tetradic
#4E3096 #963045 #789630 #309681
square
#4E3096 #963045 #789630 #309681
split-complementary
#4E3096 #968130 #459630
monochromatic
#1E1239 #362168 #4E3096 #6741C2 #8C6FD1

Accessibility & contrast

On white

9.60
#4E3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3096
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3096#FFFFFF#000000##FFFFFF
##4E30961.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#37495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3096;
/* rgb */ color: rgb(78, 48, 150);
/* oklch */ color: oklch(40.7% 0.158 291.3);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4e3096',
    950: '#000000',
  },
}
SCSS
$custom: #4e3096;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3096",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 257.647,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40684,
    "c": 0.15789,
    "h": 291.3
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

primary
#4E3096
secondary
#A1B969
accent
#DB4DB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3096

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

Preview Lab → · Contrast checker → · Palette generator →

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