#4E39B0#4E39B0

#4E39B0 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.179 H 284.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#4E39B0
RGBrgb(78, 57, 176)
HSLhsl(251, 51%, 46%)
HSVhsv(251, 68%, 69%)
CMYKcmyk(55.7%, 67.6%, 0%, 31%)
CIE-LABlab(33.31, 41.33, -60.45)
CIE-LCHlch(33.31, 73.23, 304.36°)
OKLaboklab(44.28% 0.0447 -0.1738)
OKLCHoklch(44.28% 0.179 284.4)
XYZxyz(12.4391, 7.6798, 41.8928)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39B0 #9BB039
analogous
#395FB0 #4E39B0 #8939B0
triadic
#4E39B0 #B04E39 #39B04E
tetradic
#4E39B0 #B0395F #9BB039 #39B089
square
#4E39B0 #B0395F #9BB039 #39B089
split-complementary
#4E39B0 #B08939 #5FB039
monochromatic
#251B54 #3A2A82 #4E39B0 #6F5CCA #988AD9

Accessibility & contrast

On white

8.28
#4E39B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E39B0
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39B0#FFFFFF#000000##FFFFFF
##4E39B01.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#215770
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e39b0;
/* rgb */ color: rgb(78, 57, 176);
/* oklch */ color: oklch(44.3% 0.179 284.4);
Tailwind
colors: {
  custom: {
    50: '#8971c9',
    500: '#4e39b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e39b0;
$custom-light: #8971c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39b0",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 250.588,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44279,
    "c": 0.17945,
    "h": 284.4
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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