#4E39A0#4E39A0

#4E39A0 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.9% C 0.159 H 287.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4E39A0
RGBrgb(78, 57, 160)
HSLhsl(252, 47%, 43%)
HSVhsv(252, 64%, 63%)
CMYKcmyk(51.2%, 64.4%, 0%, 37.3%)
CIE-LABlab(32.00, 36.40, -52.99)
CIE-LCHlch(32.00, 64.29, 304.49°)
OKLaboklab(42.92% 0.0466 -0.1519)
OKLCHoklch(42.92% 0.159 287.1)
XYZxyz(10.9483, 7.0835, 34.0413)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A0 #8BA039
analogous
#3958A0 #4E39A0 #8139A0
triadic
#4E39A0 #A04E39 #39A04E
tetradic
#4E39A0 #A03958 #8BA039 #39A081
square
#4E39A0 #A03958 #8BA039 #39A081
split-complementary
#4E39A0 #A08139 #58A039
monochromatic
#221946 #382973 #4E39A0 #6B54C2 #9281D2

Accessibility & contrast

On white

8.69
#4E39A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E39A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A0
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A0#FFFFFF#000000##FFFFFF
##4E39A01.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#305267
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e39a0;
/* rgb */ color: rgb(78, 57, 160);
/* oklch */ color: oklch(42.9% 0.159 287.1);
Tailwind
colors: {
  custom: {
    50: '#8770bd',
    500: '#4e39a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a0;
$custom-light: #8770bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a0",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 160
  },
  "hsl": {
    "h": 252.233,
    "s": 47.465,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42923,
    "c": 0.15886,
    "h": 287.1
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#4E39A0
secondary
#AEBC79
accent
#D751BC
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E39A0

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

Preview Lab → · Contrast checker → · Palette generator →

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