#4E38B7#4E38B7

#4E38B7 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.7% C 0.189 H 283.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4E38B7
RGBrgb(78, 56, 183)
HSLhsl(250, 53%, 47%)
HSVhsv(250, 69%, 72%)
CMYKcmyk(57.4%, 69.4%, 0%, 28.2%)
CIE-LABlab(33.70, 44.04, -63.96)
CIE-LCHlch(33.70, 77.66, 304.55°)
OKLaboklab(44.75% 0.0445 -0.1841)
OKLCHoklch(44.75% 0.189 283.6)
XYZxyz(13.1007, 7.8661, 45.6185)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B7 #A1B738
analogous
#3861B7 #4E38B7 #8E38B7
triadic
#4E38B7 #B74E38 #38B74E
tetradic
#4E38B7 #B73861 #A1B738 #38B78E
square
#4E38B7 #B73861 #A1B738 #38B78E
split-complementary
#4E38B7 #B78E38 #61B738
monochromatic
#261B59 #3A2A88 #4E38B7 #725ECE #9B8DDC

Accessibility & contrast

On white

8.16
#4E38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E38B7
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B7#FFFFFF#000000##FFFFFF
##4E38B71.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#165973
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e38b7;
/* rgb */ color: rgb(78, 56, 183);
/* oklch */ color: oklch(44.7% 0.189 283.6);
Tailwind
colors: {
  custom: {
    50: '#8b71ce',
    500: '#4e38b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b7;
$custom-light: #8b71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b7",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 250.394,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44749,
    "c": 0.18939,
    "h": 283.6
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#4E38B7
secondary
#BBC784
accent
#DD4BC3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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