#4E39A2#4E39A2

#4E39A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.1% C 0.161 H 286.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4E39A2
RGBrgb(78, 57, 162)
HSLhsl(252, 48%, 43%)
HSVhsv(252, 65%, 64%)
CMYKcmyk(51.9%, 64.8%, 0%, 36.5%)
CIE-LABlab(32.16, 37.02, -53.94)
CIE-LCHlch(32.16, 65.42, 304.46°)
OKLaboklab(43.09% 0.0464 -0.1547)
OKLCHoklch(43.09% 0.161 286.7)
XYZxyz(11.1247, 7.1540, 34.9701)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A2 #8DA239
analogous
#3958A2 #4E39A2 #8239A2
triadic
#4E39A2 #A24E39 #39A24E
tetradic
#4E39A2 #A23958 #8DA239 #39A282
square
#4E39A2 #A23958 #8DA239 #39A282
split-complementary
#4E39A2 #A28239 #58A239
monochromatic
#221947 #382975 #4E39A2 #6B55C3 #9282D3

Accessibility & contrast

On white

8.64
#4E39A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4E39A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A2#FFFFFF#000000##FFFFFF
##4E39A21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#2F5368
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e39a2;
/* rgb */ color: rgb(78, 57, 162);
/* oklch */ color: oklch(43.1% 0.161 286.7);
Tailwind
colors: {
  custom: {
    50: '#8771be',
    500: '#4e39a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a2;
$custom-light: #8771be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a2",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 252,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43088,
    "c": 0.16149,
    "h": 286.7
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#4E39A2
secondary
#AFBD7A
accent
#D850BC
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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