#4E3985#4E3985

#4E3985 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.8% C 0.122 H 292.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E3985
RGBrgb(78, 57, 133)
HSLhsl(257, 40%, 37%)
HSVhsv(257, 57%, 52%)
CMYKcmyk(41.4%, 57.1%, 0%, 47.8%)
CIE-LABlab(30.01, 28.21, -39.66)
CIE-LCHlch(30.01, 48.66, 305.42°)
OKLaboklab(40.84% 0.0477 -0.1127)
OKLCHoklch(40.84% 0.122 292.9)
XYZxyz(8.8375, 6.2392, 22.9244)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3985 #708539
analogous
#394A85 #4E3985 #743985
triadic
#4E3985 #854E39 #39854E
tetradic
#4E3985 #85394A #708539 #398574
square
#4E3985 #85394A #708539 #398574
split-complementary
#4E3985 #857439 #4A8539
monochromatic
#1C142F #35275A #4E3985 #674BB0 #8B75C4

Accessibility & contrast

On white

9.34
#4E3985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E3985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3985
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3985#FFFFFF#000000##FFFFFF
##4E39851.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134888
Deuteranopia (green-blind)
#194583
Tritanopia (blue-blind)
#404959
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3985;
/* rgb */ color: rgb(78, 57, 133);
/* oklch */ color: oklch(40.8% 0.122 292.9);
Tailwind
colors: {
  custom: {
    50: '#8370a9',
    500: '#4e3985',
    950: '#000000',
  },
}
SCSS
$custom: #4e3985;
$custom-light: #8370a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3985",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 256.579,
    "s": 40,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.12233,
    "h": 292.9
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#4E3985
secondary
#9BAD6D
accent
#D058AF
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3985

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

Preview Lab → · Contrast checker → · Palette generator →

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