#4E3598#4E3598

#4E3598 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.154 H 289.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E3598
RGBrgb(78, 53, 152)
HSLhsl(255, 48%, 40%)
HSVhsv(255, 65%, 60%)
CMYKcmyk(48.7%, 65.1%, 0%, 40.4%)
CIE-LABlab(30.48, 36.34, -50.60)
CIE-LCHlch(30.48, 62.29, 305.69°)
OKLaboklab(41.62% 0.0517 -0.1448)
OKLCHoklch(41.62% 0.154 289.6)
XYZxyz(10.0809, 6.4325, 30.4101)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3598 #7F9835
analogous
#354D98 #4E3598 #803598
triadic
#4E3598 #984E35 #35984E
tetradic
#4E3598 #98354D #7F9835 #359880
square
#4E3598 #98354D #7F9835 #359880
split-complementary
#4E3598 #988035 #4D9835
monochromatic
#1F153D #37256B #4E3598 #684AC0 #8E78D0

Accessibility & contrast

On white

9.18
#4E3598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E3598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3598
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3598#FFFFFF#000000##FFFFFF
##4E35981.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3598;
/* rgb */ color: rgb(78, 53, 152);
/* oklch */ color: oklch(41.6% 0.154 289.6);
Tailwind
colors: {
  custom: {
    50: '#866eb7',
    500: '#4e3598',
    950: '#000000',
  },
}
SCSS
$custom: #4e3598;
$custom-light: #866eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3598",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 152
  },
  "hsl": {
    "h": 255.152,
    "s": 48.293,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41623,
    "c": 0.15378,
    "h": 289.6
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#4E3598
secondary
#A6B870
accent
#D850B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3598

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

Preview Lab → · Contrast checker → · Palette generator →

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