#4E39B5#4E39B5

#4E39B5 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.7% C 0.186 H 283.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4E39B5
RGBrgb(78, 57, 181)
HSLhsl(250, 52%, 47%)
HSVhsv(250, 69%, 71%)
CMYKcmyk(56.9%, 68.5%, 0%, 29%)
CIE-LABlab(33.73, 42.86, -62.72)
CIE-LCHlch(33.73, 75.97, 304.35°)
OKLaboklab(44.72% 0.0439 -0.1805)
OKLCHoklch(44.72% 0.186 283.7)
XYZxyz(12.9429, 7.8814, 44.5463)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39B5 #A0B539
analogous
#3962B5 #4E39B5 #8C39B5
triadic
#4E39B5 #B54E39 #39B54E
tetradic
#4E39B5 #B53962 #A0B539 #39B58C
square
#4E39B5 #B53962 #A0B539 #39B58C
split-complementary
#4E39B5 #B58C39 #62B539
monochromatic
#261C58 #3A2A86 #4E39B5 #715FCD #9A8DDB

Accessibility & contrast

On white

8.15
#4E39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39B5
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39B5#FFFFFF#000000##FFFFFF
##4E39B51.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#195972
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e39b5;
/* rgb */ color: rgb(78, 57, 181);
/* oklch */ color: oklch(44.7% 0.186 283.7);
Tailwind
colors: {
  custom: {
    50: '#8a71cc',
    500: '#4e39b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e39b5;
$custom-light: #8a71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39b5",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 250.161,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44719,
    "c": 0.18573,
    "h": 283.7
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#4E39B5
secondary
#BBC684
accent
#DC4CC3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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