#4E38AE#4E38AE

#4E38AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.178 H 284.9°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#4E38AE
RGBrgb(78, 56, 174)
HSLhsl(251, 51%, 45%)
HSVhsv(251, 68%, 68%)
CMYKcmyk(55.2%, 67.8%, 0%, 31.8%)
CIE-LABlab(32.93, 41.29, -59.88)
CIE-LCHlch(32.93, 72.74, 304.58°)
OKLaboklab(43.95% 0.0459 -0.1721)
OKLCHoklch(43.95% 0.178 284.9)
XYZxyz(12.1937, 7.5033, 40.8420)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AE #98AE38
analogous
#385DAE #4E38AE #8938AE
triadic
#4E38AE #AE4E38 #38AE4E
tetradic
#4E38AE #AE385D #98AE38 #38AE89
square
#4E38AE #AE385D #98AE38 #38AE89
split-complementary
#4E38AE #AE8938 #5DAE38
monochromatic
#241A51 #392980 #4E38AE #6E59CA #9788D9

Accessibility & contrast

On white

8.40
#4E38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4E38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38AE
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AE#FFFFFF#000000##FFFFFF
##4E38AE1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#23566E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e38ae;
/* rgb */ color: rgb(78, 56, 174);
/* oklch */ color: oklch(44.0% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#8970c7',
    500: '#4e38ae',
    950: '#000000',
  },
}
SCSS
$custom: #4e38ae;
$custom-light: #8970c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38ae",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 251.186,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43953,
    "c": 0.17814,
    "h": 284.9
  },
  "luminance": 0.07504
}

Semantic roles & 50–950 ramp

primary
#4E38AE
secondary
#B6C37F
accent
#DB4DC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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