#4E38AC#4E38AC

#4E38AC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.176 H 285.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4E38AC
RGBrgb(78, 56, 172)
HSLhsl(251, 51%, 45%)
HSVhsv(251, 67%, 67%)
CMYKcmyk(54.7%, 67.4%, 0%, 32.5%)
CIE-LABlab(32.76, 40.67, -58.96)
CIE-LCHlch(32.76, 71.63, 304.60°)
OKLaboklab(43.78% 0.0462 -0.1694)
OKLCHoklch(43.78% 0.176 285.2)
XYZxyz(12.0002, 7.4259, 39.8227)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AC #96AC38
analogous
#385CAC #4E38AC #8838AC
triadic
#4E38AC #AC4E38 #38AC4E
tetradic
#4E38AC #AC385C #96AC38 #38AC88
square
#4E38AC #AC385C #96AC38 #38AC88
split-complementary
#4E38AC #AC8838 #5CAC38
monochromatic
#241A50 #39297E #4E38AC #6E58C9 #9687D8

Accessibility & contrast

On white

8.45
#4E38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E38AC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AC#FFFFFF#000000##FFFFFF
##4E38AC1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#25556D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e38ac;
/* rgb */ color: rgb(78, 56, 172);
/* oklch */ color: oklch(43.8% 0.176 285.2);
Tailwind
colors: {
  custom: {
    50: '#8970c6',
    500: '#4e38ac',
    950: '#000000',
  },
}
SCSS
$custom: #4e38ac;
$custom-light: #8970c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38ac",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 251.379,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.17561,
    "h": 285.2
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#4E38AC
secondary
#B5C27E
accent
#DA4DC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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