#4E3990#4E3990

#4E3990 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.7% C 0.138 H 290.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4E3990
RGBrgb(78, 57, 144)
HSLhsl(254, 43%, 39%)
HSVhsv(254, 60%, 56%)
CMYKcmyk(45.8%, 60.4%, 0%, 43.5%)
CIE-LABlab(30.78, 31.51, -45.21)
CIE-LCHlch(30.78, 55.11, 304.88°)
OKLaboklab(41.65% 0.0476 -0.129)
OKLCHoklch(41.65% 0.138 290.3)
XYZxyz(9.6376, 6.5592, 27.1384)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3990 #7B9039
analogous
#394F90 #4E3990 #7A3990
triadic
#4E3990 #904E39 #39904E
tetradic
#4E3990 #90394F #7B9039 #39907A
square
#4E3990 #90394F #7B9039 #39907A
split-complementary
#4E3990 #907A39 #4F9039
monochromatic
#1F1638 #362864 #4E3990 #674DB9 #8D79CA

Accessibility & contrast

On white

9.08
#4E3990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3990
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3990#FFFFFF#000000##FFFFFF
##4E39901.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A93
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#3A4D5F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3990;
/* rgb */ color: rgb(78, 57, 144);
/* oklch */ color: oklch(41.7% 0.138 290.3);
Tailwind
colors: {
  custom: {
    50: '#8570b1',
    500: '#4e3990',
    950: '#000000',
  },
}
SCSS
$custom: #4e3990;
$custom-light: #8570b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3990",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 144
  },
  "hsl": {
    "h": 254.483,
    "s": 43.284,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41652,
    "c": 0.1375,
    "h": 290.3
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#4E3990
secondary
#A3B371
accent
#D355B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3990

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

Preview Lab → · Contrast checker → · Palette generator →

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