#4E39A7#4E39A7

#4E39A7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.5% C 0.168 H 285.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#4E39A7
RGBrgb(78, 57, 167)
HSLhsl(251, 49%, 44%)
HSVhsv(251, 66%, 65%)
CMYKcmyk(53.3%, 65.9%, 0%, 34.5%)
CIE-LABlab(32.56, 38.55, -56.29)
CIE-LCHlch(32.56, 68.23, 304.41°)
OKLaboklab(43.51% 0.0459 -0.1616)
OKLCHoklch(43.51% 0.168 285.8)
XYZxyz(11.5780, 7.3354, 37.3575)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A7 #92A739
analogous
#395BA7 #4E39A7 #8539A7
triadic
#4E39A7 #A74E39 #39A74E
tetradic
#4E39A7 #A7395B #92A739 #39A785
square
#4E39A7 #A7395B #92A739 #39A785
split-complementary
#4E39A7 #A78539 #5BA739
monochromatic
#231A4C #392979 #4E39A7 #6C57C6 #9485D5

Accessibility & contrast

On white

8.51
#4E39A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E39A7
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A7#FFFFFF#000000##FFFFFF
##4E39A71.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#2A546B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e39a7;
/* rgb */ color: rgb(78, 57, 167);
/* oklch */ color: oklch(43.5% 0.168 285.8);
Tailwind
colors: {
  custom: {
    50: '#8871c2',
    500: '#4e39a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a7;
$custom-light: #8871c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a7",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 167
  },
  "hsl": {
    "h": 251.455,
    "s": 49.107,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43506,
    "c": 0.16796,
    "h": 285.8
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#4E39A7
secondary
#B3BF7D
accent
#D94FBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E39A7

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

Preview Lab → · Contrast checker → · Palette generator →

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