#4E3698#4E3698

#4E3698 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.8% C 0.152 H 289.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#4E3698
RGBrgb(78, 54, 152)
HSLhsl(255, 48%, 40%)
HSVhsv(255, 64%, 60%)
CMYKcmyk(48.7%, 64.5%, 0%, 40.4%)
CIE-LABlab(30.70, 35.75, -50.24)
CIE-LCHlch(30.70, 61.66, 305.43°)
OKLaboklab(41.78% 0.0506 -0.1438)
OKLCHoklch(41.78% 0.152 289.4)
XYZxyz(10.1269, 6.5246, 30.4255)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3698 #809836
analogous
#364F98 #4E3698 #7F3698
triadic
#4E3698 #984E36 #36984E
tetradic
#4E3698 #98364F #809836 #36987F
square
#4E3698 #98364F #809836 #36987F
split-complementary
#4E3698 #987F36 #4F9836
monochromatic
#20163E #37266B #4E3698 #684CBF #8E79CF

Accessibility & contrast

On white

9.11
#4E3698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E3698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3698
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3698#FFFFFF#000000##FFFFFF
##4E36981.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#364D62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3698;
/* rgb */ color: rgb(78, 54, 152);
/* oklch */ color: oklch(41.8% 0.152 289.4);
Tailwind
colors: {
  custom: {
    50: '#866eb7',
    500: '#4e3698',
    950: '#000000',
  },
}
SCSS
$custom: #4e3698;
$custom-light: #866eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3698",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 152
  },
  "hsl": {
    "h": 254.694,
    "s": 47.573,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41783,
    "c": 0.15243,
    "h": 289.4
  },
  "luminance": 0.06525
}

Semantic roles & 50–950 ramp

primary
#4E3698
secondary
#A7B872
accent
#D751B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3698

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

Preview Lab → · Contrast checker → · Palette generator →

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