#4E39B4#4E39B4

#4E39B4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.184 H 283.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#4E39B4
RGBrgb(78, 57, 180)
HSLhsl(250, 52%, 46%)
HSVhsv(250, 68%, 71%)
CMYKcmyk(56.7%, 68.3%, 0%, 29.4%)
CIE-LABlab(33.65, 42.56, -62.27)
CIE-LCHlch(33.65, 75.42, 304.35°)
OKLaboklab(44.63% 0.0441 -0.1791)
OKLCHoklch(44.63% 0.184 283.8)
XYZxyz(12.8407, 7.8405, 44.0079)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39B4 #9FB439
analogous
#3962B4 #4E39B4 #8C39B4
triadic
#4E39B4 #B44E39 #39B44E
tetradic
#4E39B4 #B43962 #9FB439 #39B48C
square
#4E39B4 #B43962 #9FB439 #39B48C
split-complementary
#4E39B4 #B48C39 #62B439
monochromatic
#261C57 #3A2A86 #4E39B4 #715ECC #9A8DDB

Accessibility & contrast

On white

8.18
#4E39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39B4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39B4#FFFFFF#000000##FFFFFF
##4E39B41.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#1B5972
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e39b4;
/* rgb */ color: rgb(78, 57, 180);
/* oklch */ color: oklch(44.6% 0.184 283.8);
Tailwind
colors: {
  custom: {
    50: '#8a71cb',
    500: '#4e39b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e39b4;
$custom-light: #8a71cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39b4",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 250.244,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4463,
    "c": 0.18449,
    "h": 283.8
  },
  "luminance": 0.07841
}

Semantic roles & 50–950 ramp

primary
#4E39B4
secondary
#BAC583
accent
#DB4CC3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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