#4E3389#4E3389

#4E3389 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.137 H 293.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4E3389
RGBrgb(78, 51, 137)
HSLhsl(259, 46%, 37%)
HSVhsv(259, 63%, 54%)
CMYKcmyk(43.1%, 62.8%, 0%, 46.3%)
CIE-LABlab(28.88, 33.07, -43.95)
CIE-LCHlch(28.88, 55.00, 306.96°)
OKLaboklab(40.1% 0.0552 -0.1253)
OKLCHoklch(40.1% 0.137 293.8)
XYZxyz(8.8399, 5.7933, 24.3145)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3389 #6E8933
analogous
#334389 #4E3389 #793389
triadic
#4E3389 #894E33 #33894E
tetradic
#4E3389 #893343 #6E8933 #338979
square
#4E3389 #893343 #6E8933 #338979
split-complementary
#4E3389 #897933 #438933
monochromatic
#1B1230 #35225C #4E3389 #6744B6 #8A6EC9

Accessibility & contrast

On white

9.73
#4E3389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E3389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3389
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3389#FFFFFF#000000##FFFFFF
##4E33891.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#004387
Tritanopia (blue-blind)
#3E4659
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3389;
/* rgb */ color: rgb(78, 51, 137);
/* oklch */ color: oklch(40.1% 0.137 293.8);
Tailwind
colors: {
  custom: {
    50: '#846cac',
    500: '#4e3389',
    950: '#000000',
  },
}
SCSS
$custom: #4e3389;
$custom-light: #846cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3389",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 137
  },
  "hsl": {
    "h": 258.837,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40102,
    "c": 0.13692,
    "h": 293.8
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#4E3389
secondary
#9AB167
accent
#D552AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3389

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

Preview Lab → · Contrast checker → · Palette generator →

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