#4E38B3#4E38B3

#4E38B3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.184 H 284.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#4E38B3
RGBrgb(78, 56, 179)
HSLhsl(251, 52%, 46%)
HSVhsv(251, 69%, 70%)
CMYKcmyk(56.4%, 68.7%, 0%, 29.8%)
CIE-LABlab(33.35, 42.82, -62.16)
CIE-LCHlch(33.35, 75.48, 304.56°)
OKLaboklab(44.39% 0.0451 -0.1788)
OKLCHoklch(44.39% 0.184 284.2)
XYZxyz(12.6903, 7.7020, 43.4570)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B3 #9DB338
analogous
#385FB3 #4E38B3 #8B38B3
triadic
#4E38B3 #B34E38 #38B34E
tetradic
#4E38B3 #B3385F #9DB338 #38B38B
square
#4E38B3 #B3385F #9DB338 #38B38B
split-complementary
#4E38B3 #B38B38 #5FB338
monochromatic
#251B56 #3A2984 #4E38B3 #705CCC #998BDB

Accessibility & contrast

On white

8.27
#4E38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4E38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B3#FFFFFF#000000##FFFFFF
##4E38B31.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#1D5871
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e38b3;
/* rgb */ color: rgb(78, 56, 179);
/* oklch */ color: oklch(44.4% 0.184 284.2);
Tailwind
colors: {
  custom: {
    50: '#8a70cb',
    500: '#4e38b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b3;
$custom-light: #8a70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b3",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 250.732,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44392,
    "c": 0.18441,
    "h": 284.2
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#4E38B3
secondary
#B9C582
accent
#DC4CC2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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