#4E39AA#4E39AA

#4E39AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.172 H 285.4°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4E39AA
RGBrgb(78, 57, 170)
HSLhsl(251, 50%, 45%)
HSVhsv(251, 66%, 67%)
CMYKcmyk(54.1%, 66.5%, 0%, 33.3%)
CIE-LABlab(32.80, 39.48, -57.69)
CIE-LCHlch(32.80, 69.90, 304.38°)
OKLaboklab(43.76% 0.0455 -0.1657)
OKLCHoklch(43.76% 0.172 285.4)
XYZxyz(11.8585, 7.4476, 38.8351)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39AA #95AA39
analogous
#395DAA #4E39AA #8639AA
triadic
#4E39AA #AA4E39 #39AA4E
tetradic
#4E39AA #AA395D #95AA39 #39AA86
square
#4E39AA #AA395D #95AA39 #39AA86
split-complementary
#4E39AA #AA8639 #5DAA39
monochromatic
#241A4E #392A7C #4E39AA #6D59C7 #9687D7

Accessibility & contrast

On white

8.44
#4E39AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4E39AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39AA
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39AA#FFFFFF#000000##FFFFFF
##4E39AA1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#27556C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e39aa;
/* rgb */ color: rgb(78, 57, 170);
/* oklch */ color: oklch(43.8% 0.172 285.4);
Tailwind
colors: {
  custom: {
    50: '#8871c4',
    500: '#4e39aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e39aa;
$custom-light: #8871c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39aa",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 251.15,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.17181,
    "h": 285.4
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#4E39AA
secondary
#B4C17E
accent
#D94EC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E39AA

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

Preview Lab → · Contrast checker → · Palette generator →

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