#4E38B5#4E38B5

#4E38B5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.187 H 283.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4E38B5
RGBrgb(78, 56, 181)
HSLhsl(251, 53%, 46%)
HSVhsv(251, 69%, 71%)
CMYKcmyk(56.9%, 69.1%, 0%, 29%)
CIE-LABlab(33.53, 43.43, -63.06)
CIE-LCHlch(33.53, 76.57, 304.56°)
OKLaboklab(44.57% 0.0448 -0.1814)
OKLCHoklch(44.57% 0.187 283.9)
XYZxyz(12.8940, 7.7835, 44.5300)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B5 #9FB538
analogous
#3861B5 #4E38B5 #8D38B5
triadic
#4E38B5 #B54E38 #38B54E
tetradic
#4E38B5 #B53861 #9FB538 #38B58D
square
#4E38B5 #B53861 #9FB538 #38B58D
split-complementary
#4E38B5 #B58D38 #61B538
monochromatic
#261B58 #3A2A86 #4E38B5 #715DCD #9A8CDB

Accessibility & contrast

On white

8.21
#4E38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4E38B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B5
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B5#FFFFFF#000000##FFFFFF
##4E38B51.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#195972
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e38b5;
/* rgb */ color: rgb(78, 56, 181);
/* oklch */ color: oklch(44.6% 0.187 283.9);
Tailwind
colors: {
  custom: {
    50: '#8a70cc',
    500: '#4e38b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b5;
$custom-light: #8a70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b5",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 250.56,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4457,
    "c": 0.1869,
    "h": 283.9
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#4E38B5
secondary
#BAC683
accent
#DC4CC3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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