#4E38BA#4E38BA

#4E38BA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.193 H 283.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4E38BA
RGBrgb(78, 56, 186)
HSLhsl(250, 54%, 47%)
HSVhsv(250, 70%, 73%)
CMYKcmyk(58.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(33.97, 44.96, -65.30)
CIE-LCHlch(33.97, 79.28, 304.55°)
OKLaboklab(45.02% 0.044 -0.188)
OKLCHoklch(45.02% 0.193 283.2)
XYZxyz(13.4163, 7.9924, 47.2806)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38BA #A4BA38
analogous
#3863BA #4E38BA #8F38BA
triadic
#4E38BA #BA4E38 #38BA4E
tetradic
#4E38BA #BA3863 #A4BA38 #38BA8F
square
#4E38BA #BA3863 #A4BA38 #38BA8F
split-complementary
#4E38BA #BA8F38 #63BA38
monochromatic
#271C5C #3A2A8B #4E38BA #7360CF #9C8FDD

Accessibility & contrast

On white

8.08
#4E38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4E38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38BA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38BA#FFFFFF#000000##FFFFFF
##4E38BA1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#0F5A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e38ba;
/* rgb */ color: rgb(78, 56, 186);
/* oklch */ color: oklch(45.0% 0.193 283.2);
Tailwind
colors: {
  custom: {
    50: '#8b71d0',
    500: '#4e38ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e38ba;
$custom-light: #8b71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38ba",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 250.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.19309,
    "h": 283.2
  },
  "luminance": 0.07993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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