#4E38B0#4E38B0

#4E38B0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.1% C 0.181 H 284.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4E38B0
RGBrgb(78, 56, 176)
HSLhsl(251, 52%, 45%)
HSVhsv(251, 68%, 69%)
CMYKcmyk(55.7%, 68.2%, 0%, 31%)
CIE-LABlab(33.10, 41.90, -60.80)
CIE-LCHlch(33.10, 73.84, 304.57°)
OKLaboklab(44.13% 0.0456 -0.1748)
OKLCHoklch(44.13% 0.181 284.6)
XYZxyz(12.3902, 7.5819, 41.8765)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B0 #9AB038
analogous
#385EB0 #4E38B0 #8A38B0
triadic
#4E38B0 #B04E38 #38B04E
tetradic
#4E38B0 #B0385E #9AB038 #38B08A
square
#4E38B0 #B0385E #9AB038 #38B08A
split-complementary
#4E38B0 #B08A38 #5EB038
monochromatic
#251A53 #392982 #4E38B0 #6F5BCB #9889D9

Accessibility & contrast

On white

8.34
#4E38B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E38B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B0#FFFFFF#000000##FFFFFF
##4E38B01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#21576F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e38b0;
/* rgb */ color: rgb(78, 56, 176);
/* oklch */ color: oklch(44.1% 0.181 284.6);
Tailwind
colors: {
  custom: {
    50: '#8970c9',
    500: '#4e38b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b0;
$custom-light: #8970c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b0",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 251,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44128,
    "c": 0.18066,
    "h": 284.6
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#4E38B0
secondary
#B7C480
accent
#DB4DC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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