#4E39A1#4E39A1

#4E39A1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.0% C 0.160 H 286.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4E39A1
RGBrgb(78, 57, 161)
HSLhsl(252, 48%, 43%)
HSVhsv(252, 65%, 63%)
CMYKcmyk(51.6%, 64.6%, 0%, 36.9%)
CIE-LABlab(32.08, 36.71, -53.46)
CIE-LCHlch(32.08, 64.85, 304.47°)
OKLaboklab(43.01% 0.0465 -0.1533)
OKLCHoklch(43.01% 0.16 286.9)
XYZxyz(11.0361, 7.1186, 34.5038)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A1 #8CA139
analogous
#3958A1 #4E39A1 #8239A1
triadic
#4E39A1 #A14E39 #39A14E
tetradic
#4E39A1 #A13958 #8CA139 #39A182
square
#4E39A1 #A13958 #8CA139 #39A182
split-complementary
#4E39A1 #A18239 #58A139
monochromatic
#221947 #382974 #4E39A1 #6B55C3 #9282D3

Accessibility & contrast

On white

8.66
#4E39A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E39A1
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A1#FFFFFF#000000##FFFFFF
##4E39A11.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#2F5267
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e39a1;
/* rgb */ color: rgb(78, 57, 161);
/* oklch */ color: oklch(43.0% 0.160 286.9);
Tailwind
colors: {
  custom: {
    50: '#8770be',
    500: '#4e39a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a1;
$custom-light: #8770be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a1",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 252.115,
    "s": 47.706,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43005,
    "c": 0.16017,
    "h": 286.9
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#4E39A1
secondary
#AFBC79
accent
#D750BC
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E39A1

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

Preview Lab → · Contrast checker → · Palette generator →

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