#4E39A8#4E39A8

#4E39A8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.6% C 0.169 H 285.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4E39A8
RGBrgb(78, 57, 168)
HSLhsl(251, 49%, 44%)
HSVhsv(251, 66%, 66%)
CMYKcmyk(53.6%, 66.1%, 0%, 34.1%)
CIE-LABlab(32.64, 38.86, -56.76)
CIE-LCHlch(32.64, 68.79, 304.40°)
OKLaboklab(43.59% 0.0458 -0.163)
OKLCHoklch(43.59% 0.169 285.7)
XYZxyz(11.6708, 7.3725, 37.8463)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A8 #93A839
analogous
#395CA8 #4E39A8 #8639A8
triadic
#4E39A8 #A84E39 #39A84E
tetradic
#4E39A8 #A8395C #93A839 #39A886
square
#4E39A8 #A8395C #93A839 #39A886
split-complementary
#4E39A8 #A88639 #5CA839
monochromatic
#241A4D #39297A #4E39A8 #6D58C6 #9586D6

Accessibility & contrast

On white

8.49
#4E39A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E39A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A8#FFFFFF#000000##FFFFFF
##4E39A81.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#29556B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e39a8;
/* rgb */ color: rgb(78, 57, 168);
/* oklch */ color: oklch(43.6% 0.169 285.7);
Tailwind
colors: {
  custom: {
    50: '#8871c3',
    500: '#4e39a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a8;
$custom-light: #8871c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a8",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 168
  },
  "hsl": {
    "h": 251.351,
    "s": 49.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.16925,
    "h": 285.7
  },
  "luminance": 0.07373
}

Semantic roles & 50–950 ramp

primary
#4E39A8
secondary
#B3C07D
accent
#D94FBF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E39A8

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

Preview Lab → · Contrast checker → · Palette generator →

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