#4E38A2#4E38A2

#4E38A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.9% C 0.163 H 286.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#4E38A2
RGBrgb(78, 56, 162)
HSLhsl(252, 49%, 43%)
HSVhsv(252, 65%, 64%)
CMYKcmyk(51.9%, 65.4%, 0%, 36.5%)
CIE-LABlab(31.93, 37.61, -54.30)
CIE-LCHlch(31.93, 66.05, 304.71°)
OKLaboklab(42.93% 0.0475 -0.1557)
OKLCHoklch(42.93% 0.163 286.9)
XYZxyz(11.0757, 7.0561, 34.9538)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38A2 #8CA238
analogous
#3857A2 #4E38A2 #8338A2
triadic
#4E38A2 #A24E38 #38A24E
tetradic
#4E38A2 #A23857 #8CA238 #38A283
square
#4E38A2 #A23857 #8CA238 #38A283
split-complementary
#4E38A2 #A28338 #57A238
monochromatic
#221947 #382875 #4E38A2 #6B53C4 #9281D3

Accessibility & contrast

On white

8.71
#4E38A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E38A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38A2#FFFFFF#000000##FFFFFF
##4E38A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#2F5268
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e38a2;
/* rgb */ color: rgb(78, 56, 162);
/* oklch */ color: oklch(42.9% 0.163 286.9);
Tailwind
colors: {
  custom: {
    50: '#8770be',
    500: '#4e38a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e38a2;
$custom-light: #8770be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38a2",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 252.453,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42928,
    "c": 0.16279,
    "h": 286.9
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#4E38A2
secondary
#AFBD79
accent
#D850BC
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E38A2

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

Preview Lab → · Contrast checker → · Palette generator →

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