#4E38C6#4E38C6

#4E38C6 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.1% C 0.208 H 281.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#4E38C6
RGBrgb(78, 56, 198)
HSLhsl(249, 56%, 50%)
HSVhsv(249, 72%, 78%)
CMYKcmyk(60.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(35.05, 48.62, -70.57)
CIE-LCHlch(35.05, 85.69, 304.57°)
OKLaboklab(46.12% 0.0417 -0.2034)
OKLCHoklch(46.12% 0.208 281.6)
XYZxyz(14.7459, 8.5242, 54.2834)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38C6 #B0C638
analogous
#3869C6 #4E38C6 #9538C6
triadic
#4E38C6 #C64E38 #38C64E
tetradic
#4E38C6 #C63869 #B0C638 #38C695
square
#4E38C6 #C63869 #B0C638 #38C695
split-complementary
#4E38C6 #C69538 #69C638
monochromatic
#281D67 #3B2B96 #4E38C6 #7867D4 #A297E2

Accessibility & contrast

On white

7.76
#4E38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4E38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38C6
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38C6#FFFFFF#000000##FFFFFF
##4E38C61.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e38c6;
/* rgb */ color: rgb(78, 56, 198);
/* oklch */ color: oklch(46.1% 0.208 281.6);
Tailwind
colors: {
  custom: {
    50: '#8d71d8',
    500: '#4e38c6',
    950: '#000000',
  },
}
SCSS
$custom: #4e38c6;
$custom-light: #8d71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38c6",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 249.296,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46124,
    "c": 0.20766,
    "h": 281.6
  },
  "luminance": 0.08525
}

Semantic roles & 50–950 ramp

primary
#4E38C6
secondary
#C3CD8D
accent
#DF49C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4E38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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