#4E38BB#4E38BB

#4E38BB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.194 H 283.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4E38BB
RGBrgb(78, 56, 187)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 70%, 73%)
CMYKcmyk(58.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.06, 45.27, -65.75)
CIE-LCHlch(34.06, 79.82, 304.55°)
OKLaboklab(45.11% 0.0438 -0.1893)
OKLCHoklch(45.11% 0.194 283)
XYZxyz(13.5229, 8.0350, 47.8424)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38BB #A5BB38
analogous
#3864BB #4E38BB #8F38BB
triadic
#4E38BB #BB4E38 #38BB4E
tetradic
#4E38BB #BB3864 #A5BB38 #38BB8F
square
#4E38BB #BB3864 #A5BB38 #38BB8F
split-complementary
#4E38BB #BB8F38 #64BB38
monochromatic
#271C5D #3A2A8C #4E38BB #7361D0 #9D90DE

Accessibility & contrast

On white

8.05
#4E38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4E38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38BB
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38BB#FFFFFF#000000##FFFFFF
##4E38BB1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#0C5B75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e38bb;
/* rgb */ color: rgb(78, 56, 187);
/* oklch */ color: oklch(45.1% 0.194 283.0);
Tailwind
colors: {
  custom: {
    50: '#8b71d1',
    500: '#4e38bb',
    950: '#000000',
  },
}
SCSS
$custom: #4e38bb;
$custom-light: #8b71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38bb",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 250.076,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.19431,
    "h": 283
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#4E38BB
secondary
#BDC886
accent
#DD4BC5
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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