#4E39B2#4E39B2

#4E39B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.182 H 284.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4E39B2
RGBrgb(78, 57, 178)
HSLhsl(250, 51%, 46%)
HSVhsv(250, 68%, 70%)
CMYKcmyk(56.2%, 68%, 0%, 30.2%)
CIE-LABlab(33.48, 41.94, -61.36)
CIE-LCHlch(33.48, 74.33, 304.35°)
OKLaboklab(44.45% 0.0444 -0.1765)
OKLCHoklch(44.45% 0.182 284.1)
XYZxyz(12.6384, 7.7596, 42.9426)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39B2 #9DB239
analogous
#3960B2 #4E39B2 #8A39B2
triadic
#4E39B2 #B24E39 #39B24E
tetradic
#4E39B2 #B23960 #9DB239 #39B28A
square
#4E39B2 #B23960 #9DB239 #39B28A
split-complementary
#4E39B2 #B28A39 #60B239
monochromatic
#251B55 #3A2A84 #4E39B2 #705DCB #998BDA

Accessibility & contrast

On white

8.23
#4E39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4E39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39B2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39B2#FFFFFF#000000##FFFFFF
##4E39B21.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#1E5871
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e39b2;
/* rgb */ color: rgb(78, 57, 178);
/* oklch */ color: oklch(44.5% 0.182 284.1);
Tailwind
colors: {
  custom: {
    50: '#8a71ca',
    500: '#4e39b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e39b2;
$custom-light: #8a71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39b2",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 250.413,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44454,
    "c": 0.18197,
    "h": 284.1
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#4E39B2
secondary
#B9C482
accent
#DB4DC2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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