#4E39A6#4E39A6

#4E39A6 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.4% C 0.167 H 286.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4E39A6
RGBrgb(78, 57, 166)
HSLhsl(252, 49%, 44%)
HSVhsv(252, 66%, 65%)
CMYKcmyk(53%, 65.7%, 0%, 34.9%)
CIE-LABlab(32.48, 38.25, -55.82)
CIE-LCHlch(32.48, 67.67, 304.42°)
OKLaboklab(43.42% 0.046 -0.1602)
OKLCHoklch(43.42% 0.167 286)
XYZxyz(11.4859, 7.2985, 36.8725)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A6 #91A639
analogous
#395AA6 #4E39A6 #8439A6
triadic
#4E39A6 #A64E39 #39A64E
tetradic
#4E39A6 #A6395A #91A639 #39A684
square
#4E39A6 #A6395A #91A639 #39A684
split-complementary
#4E39A6 #A68439 #5AA639
monochromatic
#231A4B #392978 #4E39A6 #6C57C5 #9484D5

Accessibility & contrast

On white

8.54
#4E39A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4E39A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A6
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A6#FFFFFF#000000##FFFFFF
##4E39A61.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#2B546A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e39a6;
/* rgb */ color: rgb(78, 57, 166);
/* oklch */ color: oklch(43.4% 0.167 286.0);
Tailwind
colors: {
  custom: {
    50: '#8871c1',
    500: '#4e39a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a6;
$custom-light: #8871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a6",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 251.56,
    "s": 48.879,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43422,
    "c": 0.16667,
    "h": 286
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#4E39A6
secondary
#B2BF7C
accent
#D84FBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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