#4E38AB#4E38AB

#4E38AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.174 H 285.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#4E38AB
RGBrgb(78, 56, 171)
HSLhsl(251, 51%, 45%)
HSVhsv(251, 67%, 67%)
CMYKcmyk(54.4%, 67.3%, 0%, 32.9%)
CIE-LABlab(32.67, 40.37, -58.50)
CIE-LCHlch(32.67, 71.08, 304.60°)
OKLaboklab(43.69% 0.0463 -0.1681)
OKLCHoklch(43.69% 0.174 285.4)
XYZxyz(11.9045, 7.3877, 39.3189)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38AB #95AB38
analogous
#385CAB #4E38AB #8838AB
triadic
#4E38AB #AB4E38 #38AB4E
tetradic
#4E38AB #AB385C #95AB38 #38AB88
square
#4E38AB #AB385C #95AB38 #38AB88
split-complementary
#4E38AB #AB8838 #5CAB38
monochromatic
#241A4F #39297D #4E38AB #6D58C8 #9686D7

Accessibility & contrast

On white

8.48
#4E38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4E38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38AB
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38AB#FFFFFF#000000##FFFFFF
##4E38AB1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#26556D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e38ab;
/* rgb */ color: rgb(78, 56, 171);
/* oklch */ color: oklch(43.7% 0.174 285.4);
Tailwind
colors: {
  custom: {
    50: '#8970c5',
    500: '#4e38ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e38ab;
$custom-light: #8970c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38ab",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 251.478,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.17434,
    "h": 285.4
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#4E38AB
secondary
#B4C17D
accent
#DA4EBF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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