#4E39A5#4E39A5

#4E39A5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.3% C 0.165 H 286.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4E39A5
RGBrgb(78, 57, 165)
HSLhsl(252, 49%, 44%)
HSVhsv(252, 65%, 65%)
CMYKcmyk(52.7%, 65.5%, 0%, 35.3%)
CIE-LABlab(32.40, 37.94, -55.35)
CIE-LCHlch(32.40, 67.11, 304.43°)
OKLaboklab(43.34% 0.0461 -0.1588)
OKLCHoklch(43.34% 0.165 286.2)
XYZxyz(11.3945, 7.2620, 36.3913)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A5 #90A539
analogous
#395AA5 #4E39A5 #8439A5
triadic
#4E39A5 #A54E39 #39A54E
tetradic
#4E39A5 #A5395A #90A539 #39A584
square
#4E39A5 #A5395A #90A539 #39A584
split-complementary
#4E39A5 #A58439 #5AA539
monochromatic
#231A4A #382978 #4E39A5 #6C56C5 #9484D4

Accessibility & contrast

On white

8.56
#4E39A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E39A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A5
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A5#FFFFFF#000000##FFFFFF
##4E39A51.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#2C546A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e39a5;
/* rgb */ color: rgb(78, 57, 165);
/* oklch */ color: oklch(43.3% 0.165 286.2);
Tailwind
colors: {
  custom: {
    50: '#8871c1',
    500: '#4e39a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a5;
$custom-light: #8871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a5",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 165
  },
  "hsl": {
    "h": 251.667,
    "s": 48.649,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43338,
    "c": 0.16538,
    "h": 286.2
  },
  "luminance": 0.07263
}

Semantic roles & 50–950 ramp

primary
#4E39A5
secondary
#B1BE7B
accent
#D850BE
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E39A5

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

Preview Lab → · Contrast checker → · Palette generator →

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