#4E39AB#4E39AB

#4E39AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.8% C 0.173 H 285.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#4E39AB
RGBrgb(78, 57, 171)
HSLhsl(251, 50%, 45%)
HSVhsv(251, 67%, 67%)
CMYKcmyk(54.4%, 66.7%, 0%, 32.9%)
CIE-LABlab(32.89, 39.79, -58.15)
CIE-LCHlch(32.89, 70.46, 304.38°)
OKLaboklab(43.85% 0.0454 -0.167)
OKLCHoklch(43.85% 0.173 285.2)
XYZxyz(11.9535, 7.4856, 39.3352)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39AB #96AB39
analogous
#395DAB #4E39AB #8739AB
triadic
#4E39AB #AB4E39 #39AB4E
tetradic
#4E39AB #AB395D #96AB39 #39AB87
square
#4E39AB #AB395D #96AB39 #39AB87
split-complementary
#4E39AB #AB8739 #5DAB39
monochromatic
#241A4F #392A7D #4E39AB #6E59C8 #9687D7

Accessibility & contrast

On white

8.41
#4E39AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4E39AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39AB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39AB#FFFFFF#000000##FFFFFF
##4E39AB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#26566D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e39ab;
/* rgb */ color: rgb(78, 57, 171);
/* oklch */ color: oklch(43.8% 0.173 285.2);
Tailwind
colors: {
  custom: {
    50: '#8971c5',
    500: '#4e39ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e39ab;
$custom-light: #8971c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39ab",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 251.053,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43847,
    "c": 0.1731,
    "h": 285.2
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#4E39AB
secondary
#B5C17F
accent
#DA4EC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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