#4E38BC#4E38BC

#4E38BC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.196 H 282.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#4E38BC
RGBrgb(78, 56, 188)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 70%, 74%)
CMYKcmyk(58.5%, 70.2%, 0%, 26.3%)
CIE-LABlab(34.14, 45.57, -66.19)
CIE-LCHlch(34.14, 80.36, 304.55°)
OKLaboklab(45.2% 0.0436 -0.1906)
OKLCHoklch(45.2% 0.196 282.9)
XYZxyz(13.6304, 8.0780, 48.4082)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38BC #A6BC38
analogous
#3864BC #4E38BC #9038BC
triadic
#4E38BC #BC4E38 #38BC4E
tetradic
#4E38BC #BC3864 #A6BC38 #38BC90
square
#4E38BC #BC3864 #A6BC38 #38BC90
split-complementary
#4E38BC #BC9038 #64BC38
monochromatic
#271C5E #3A2A8D #4E38BC #7461D0 #9D90DE

Accessibility & contrast

On white

8.03
#4E38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4E38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38BC
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38BC#FFFFFF#000000##FFFFFF
##4E38BC1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#095B76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e38bc;
/* rgb */ color: rgb(78, 56, 188);
/* oklch */ color: oklch(45.2% 0.196 282.9);
Tailwind
colors: {
  custom: {
    50: '#8b71d1',
    500: '#4e38bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e38bc;
$custom-light: #8b71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38bc",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 250,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45201,
    "c": 0.19554,
    "h": 282.9
  },
  "luminance": 0.08079
}

Semantic roles & 50–950 ramp

primary
#4E38BC
secondary
#BEC987
accent
#DD4AC5
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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