#4E38C7#4E38C7

#4E38C7 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.2% C 0.209 H 281.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4E38C7
RGBrgb(78, 56, 199)
HSLhsl(249, 56%, 50%)
HSVhsv(249, 72%, 78%)
CMYKcmyk(60.8%, 71.9%, 0%, 22%)
CIE-LABlab(35.14, 48.92, -71.00)
CIE-LCHlch(35.14, 86.22, 304.57°)
OKLaboklab(46.22% 0.0415 -0.2047)
OKLCHoklch(46.22% 0.209 281.5)
XYZxyz(14.8616, 8.5705, 54.8929)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38C7 #B1C738
analogous
#3869C7 #4E38C7 #9638C7
triadic
#4E38C7 #C74E38 #38C74E
tetradic
#4E38C7 #C73869 #B1C738 #38C796
square
#4E38C7 #C73869 #B1C738 #38C796
split-complementary
#4E38C7 #C79638 #69C738
monochromatic
#291D67 #3B2B97 #4E38C7 #7868D4 #A398E2

Accessibility & contrast

On white

7.74
#4E38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E38C7
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38C7#FFFFFF#000000##FFFFFF
##4E38C71.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e38c7;
/* rgb */ color: rgb(78, 56, 199);
/* oklch */ color: oklch(46.2% 0.209 281.5);
Tailwind
colors: {
  custom: {
    50: '#8d71d9',
    500: '#4e38c7',
    950: '#000000',
  },
}
SCSS
$custom: #4e38c7;
$custom-light: #8d71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38c7",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 249.231,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.20886,
    "h": 281.5
  },
  "luminance": 0.08572
}

Semantic roles & 50–950 ramp

primary
#4E38C7
secondary
#C4CD8D
accent
#DF48C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4E38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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