#4E38B4#4E38B4

#4E38B4 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.186 H 284.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#4E38B4
RGBrgb(78, 56, 180)
HSLhsl(251, 53%, 46%)
HSVhsv(251, 69%, 71%)
CMYKcmyk(56.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(33.44, 43.13, -62.61)
CIE-LCHlch(33.44, 76.03, 304.56°)
OKLaboklab(44.48% 0.045 -0.1801)
OKLCHoklch(44.48% 0.186 284)
XYZxyz(12.7918, 7.7426, 43.9916)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B4 #9EB438
analogous
#3860B4 #4E38B4 #8C38B4
triadic
#4E38B4 #B44E38 #38B44E
tetradic
#4E38B4 #B43860 #9EB438 #38B48C
square
#4E38B4 #B43860 #9EB438 #38B48C
split-complementary
#4E38B4 #B48C38 #60B438
monochromatic
#261B57 #3A2985 #4E38B4 #715DCD #9A8BDB

Accessibility & contrast

On white

8.24
#4E38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4E38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B4#FFFFFF#000000##FFFFFF
##4E38B41.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#1B5871
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e38b4;
/* rgb */ color: rgb(78, 56, 180);
/* oklch */ color: oklch(44.5% 0.186 284.0);
Tailwind
colors: {
  custom: {
    50: '#8a70cb',
    500: '#4e38b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b4;
$custom-light: #8a70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b4",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 250.645,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44481,
    "c": 0.18566,
    "h": 284
  },
  "luminance": 0.07743
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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