#4E38B8#4E38B8

#4E38B8 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.191 H 283.4°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#4E38B8
RGBrgb(78, 56, 184)
HSLhsl(250, 53%, 47%)
HSVhsv(250, 70%, 72%)
CMYKcmyk(57.6%, 69.6%, 0%, 27.8%)
CIE-LABlab(33.79, 44.35, -64.41)
CIE-LCHlch(33.79, 78.20, 304.55°)
OKLaboklab(44.84% 0.0443 -0.1854)
OKLCHoklch(44.84% 0.191 283.4)
XYZxyz(13.2051, 7.9079, 46.1686)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B8 #A2B838
analogous
#3862B8 #4E38B8 #8E38B8
triadic
#4E38B8 #B84E38 #38B84E
tetradic
#4E38B8 #B83862 #A2B838 #38B88E
square
#4E38B8 #B83862 #A2B838 #38B88E
split-complementary
#4E38B8 #B88E38 #62B838
monochromatic
#261B5A #3A2A89 #4E38B8 #725FCE #9B8EDD

Accessibility & contrast

On white

8.13
#4E38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B8
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B8#FFFFFF#000000##FFFFFF
##4E38B81.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#145A74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e38b8;
/* rgb */ color: rgb(78, 56, 184);
/* oklch */ color: oklch(44.8% 0.191 283.4);
Tailwind
colors: {
  custom: {
    50: '#8b71ce',
    500: '#4e38b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b8;
$custom-light: #8b71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b8",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 250.313,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.19062,
    "h": 283.4
  },
  "luminance": 0.07909
}

Semantic roles & 50–950 ramp

primary
#4E38B8
secondary
#BCC785
accent
#DD4BC4
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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