#4E38C5#4E38C5

#4E38C5 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.0% C 0.206 H 281.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4E38C5
RGBrgb(78, 56, 197)
HSLhsl(249, 56%, 50%)
HSVhsv(249, 72%, 77%)
CMYKcmyk(60.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(34.96, 48.31, -70.13)
CIE-LCHlch(34.96, 85.16, 304.56°)
OKLaboklab(46.03% 0.0419 -0.2022)
OKLCHoklch(46.03% 0.206 281.7)
XYZxyz(14.6309, 8.4782, 53.6780)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38C5 #AFC538
analogous
#3868C5 #4E38C5 #9538C5
triadic
#4E38C5 #C54E38 #38C54E
tetradic
#4E38C5 #C53868 #AFC538 #38C595
square
#4E38C5 #C53868 #AFC538 #38C595
split-complementary
#4E38C5 #C59538 #68C538
monochromatic
#281D66 #3B2A95 #4E38C5 #7867D4 #A296E1

Accessibility & contrast

On white

7.79
#4E38C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4E38C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38C5
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38C5#FFFFFF#000000##FFFFFF
##4E38C51.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e38c5;
/* rgb */ color: rgb(78, 56, 197);
/* oklch */ color: oklch(46.0% 0.206 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d71d8',
    500: '#4e38c5',
    950: '#000000',
  },
}
SCSS
$custom: #4e38c5;
$custom-light: #8d71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38c5",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 249.362,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46031,
    "c": 0.20646,
    "h": 281.7
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#4E38C5
secondary
#C3CD8C
accent
#DF49C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4E38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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