#4E39A3#4E39A3

#4E39A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.2% C 0.163 H 286.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4E39A3
RGBrgb(78, 57, 163)
HSLhsl(252, 48%, 43%)
HSVhsv(252, 65%, 64%)
CMYKcmyk(52.1%, 65%, 0%, 36.1%)
CIE-LABlab(32.23, 37.32, -54.41)
CIE-LCHlch(32.23, 65.98, 304.45°)
OKLaboklab(43.17% 0.0463 -0.1561)
OKLCHoklch(43.17% 0.163 286.5)
XYZxyz(11.2139, 7.1897, 35.4401)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E39A3 #8EA339
analogous
#3959A3 #4E39A3 #8339A3
triadic
#4E39A3 #A34E39 #39A34E
tetradic
#4E39A3 #A33959 #8EA339 #39A383
square
#4E39A3 #A33959 #8EA339 #39A383
split-complementary
#4E39A3 #A38339 #59A339
monochromatic
#231948 #382976 #4E39A3 #6B55C4 #9383D4

Accessibility & contrast

On white

8.61
#4E39A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E39A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E39A3
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E39A3#FFFFFF#000000##FFFFFF
##4E39A31.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#2E5369
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e39a3;
/* rgb */ color: rgb(78, 57, 163);
/* oklch */ color: oklch(43.2% 0.163 286.5);
Tailwind
colors: {
  custom: {
    50: '#8771bf',
    500: '#4e39a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e39a3;
$custom-light: #8771bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e39a3",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 163
  },
  "hsl": {
    "h": 251.887,
    "s": 48.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43171,
    "c": 0.16279,
    "h": 286.5
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#4E39A3
secondary
#B0BD7A
accent
#D850BD
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E39A3

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

Preview Lab → · Contrast checker → · Palette generator →

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