#4E38AD#4E38AD

#4E38AD is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.177 H 285.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#4E38AD
RGBrgb(78, 56, 173)
HSLhsl(251, 51%, 45%)
HSVhsv(251, 68%, 68%)
CMYKcmyk(54.9%, 67.6%, 0%, 32.2%)
CIE-LABlab(32.84, 40.98, -59.42)
CIE-LCHlch(32.84, 72.18, 304.59°)
OKLaboklab(43.86% 0.046 -0.1708)
OKLCHoklch(43.86% 0.177 285.1)
XYZxyz(12.0966, 7.4645, 40.3304)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AD #97AD38
analogous
#385DAD #4E38AD #8938AD
triadic
#4E38AD #AD4E38 #38AD4E
tetradic
#4E38AD #AD385D #97AD38 #38AD89
square
#4E38AD #AD385D #97AD38 #38AD89
split-complementary
#4E38AD #AD8938 #5DAD38
monochromatic
#241A51 #39297F #4E38AD #6E59C9 #9687D8

Accessibility & contrast

On white

8.42
#4E38AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4E38AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38AD
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AD#FFFFFF#000000##FFFFFF
##4E38AD1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#24566E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e38ad;
/* rgb */ color: rgb(78, 56, 173);
/* oklch */ color: oklch(43.9% 0.177 285.1);
Tailwind
colors: {
  custom: {
    50: '#8970c6',
    500: '#4e38ad',
    950: '#000000',
  },
}
SCSS
$custom: #4e38ad;
$custom-light: #8970c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38ad",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 251.282,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.17688,
    "h": 285.1
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#4E38AD
secondary
#B6C27F
accent
#DB4DC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E38AD

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

Preview Lab → · Contrast checker → · Palette generator →

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