#4E38B6#4E38B6

#4E38B6 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.188 H 283.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#4E38B6
RGBrgb(78, 56, 182)
HSLhsl(250, 53%, 47%)
HSVhsv(250, 69%, 71%)
CMYKcmyk(57.1%, 69.2%, 0%, 28.6%)
CIE-LABlab(33.61, 43.74, -63.51)
CIE-LCHlch(33.61, 77.12, 304.55°)
OKLaboklab(44.66% 0.0446 -0.1828)
OKLCHoklch(44.66% 0.188 283.7)
XYZxyz(12.9970, 7.8246, 45.0723)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B6 #A0B638
analogous
#3861B6 #4E38B6 #8D38B6
triadic
#4E38B6 #B64E38 #38B64E
tetradic
#4E38B6 #B63861 #A0B638 #38B68D
square
#4E38B6 #B63861 #A0B638 #38B68D
split-complementary
#4E38B6 #B68D38 #61B638
monochromatic
#261B58 #3A2A87 #4E38B6 #715ECD #9A8DDC

Accessibility & contrast

On white

8.19
#4E38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E38B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B6
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B6#FFFFFF#000000##FFFFFF
##4E38B61.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#185973
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e38b6;
/* rgb */ color: rgb(78, 56, 182);
/* oklch */ color: oklch(44.7% 0.188 283.7);
Tailwind
colors: {
  custom: {
    50: '#8a70cd',
    500: '#4e38b6',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b6;
$custom-light: #8a70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b6",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 250.476,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4466,
    "c": 0.18814,
    "h": 283.7
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#4E38B6
secondary
#BBC684
accent
#DC4BC3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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