#4E38B2#4E38B2

#4E38B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.183 H 284.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4E38B2
RGBrgb(78, 56, 178)
HSLhsl(251, 52%, 46%)
HSVhsv(251, 69%, 70%)
CMYKcmyk(56.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(33.27, 42.51, -61.71)
CIE-LCHlch(33.27, 74.93, 304.56°)
OKLaboklab(44.3% 0.0453 -0.1775)
OKLCHoklch(44.3% 0.183 284.3)
XYZxyz(12.5895, 7.6617, 42.9263)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38B2 #9CB238
analogous
#385FB2 #4E38B2 #8B38B2
triadic
#4E38B2 #B24E38 #38B24E
tetradic
#4E38B2 #B2385F #9CB238 #38B28B
square
#4E38B2 #B2385F #9CB238 #38B28B
split-complementary
#4E38B2 #B28B38 #5FB238
monochromatic
#251B55 #3A2983 #4E38B2 #705CCC #998ADA

Accessibility & contrast

On white

8.29
#4E38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4E38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38B2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38B2#FFFFFF#000000##FFFFFF
##4E38B21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#1E5870
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e38b2;
/* rgb */ color: rgb(78, 56, 178);
/* oklch */ color: oklch(44.3% 0.183 284.3);
Tailwind
colors: {
  custom: {
    50: '#8a70ca',
    500: '#4e38b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e38b2;
$custom-light: #8a70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38b2",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 250.82,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.18317,
    "h": 284.3
  },
  "luminance": 0.07662
}

Semantic roles & 50–950 ramp

primary
#4E38B2
secondary
#B8C581
accent
#DC4CC2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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