#4E39B1#4E39B1

#4E39B1 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.181 H 284.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#4E39B1
RGBrgb(78, 57, 177)
HSLhsl(251, 51%, 46%)
HSVhsv(251, 68%, 69%)
CMYKcmyk(55.9%, 67.8%, 0%, 30.6%)
CIE-LABlab(33.39, 41.63, -60.91)
CIE-LCHlch(33.39, 73.78, 304.35°)
OKLaboklab(44.37% 0.0446 -0.1751)
OKLCHoklch(44.37% 0.181 284.3)
XYZxyz(12.5384, 7.7195, 42.4158)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39B1 #9CB139
analogous
#3960B1 #4E39B1 #8A39B1
triadic
#4E39B1 #B14E39 #39B14E
tetradic
#4E39B1 #B13960 #9CB139 #39B18A
square
#4E39B1 #B13960 #9CB139 #39B18A
split-complementary
#4E39B1 #B18A39 #60B139
monochromatic
#251B54 #3A2A83 #4E39B1 #705DCB #998BDA

Accessibility & contrast

On white

8.25
#4E39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4E39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39B1
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39B1#FFFFFF#000000##FFFFFF
##4E39B11.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#1F5870
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e39b1;
/* rgb */ color: rgb(78, 57, 177);
/* oklch */ color: oklch(44.4% 0.181 284.3);
Tailwind
colors: {
  custom: {
    50: '#8a71c9',
    500: '#4e39b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e39b1;
$custom-light: #8a71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39b1",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 250.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44366,
    "c": 0.18072,
    "h": 284.3
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#4E39B1
secondary
#B8C482
accent
#DB4DC2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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