#4E42C6#4E42C6

#4E42C6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.6% C 0.197 H 279.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4E42C6
RGBrgb(78, 66, 198)
HSLhsl(245, 54%, 52%)
HSVhsv(245, 67%, 78%)
CMYKcmyk(60.6%, 66.7%, 0%, 22.4%)
CIE-LABlab(37.10, 42.99, -67.21)
CIE-LCHlch(37.10, 79.78, 302.61°)
OKLaboklab(47.59% 0.034 -0.1936)
OKLCHoklch(47.59% 0.197 279.9)
XYZxyz(15.2799, 9.5922, 54.4614)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C6 #BAC642
analogous
#4278C6 #4E42C6 #9042C6
triadic
#4E42C6 #C64E42 #42C64E
tetradic
#4E42C6 #C64278 #BAC642 #42C690
square
#4E42C6 #C64278 #BAC642 #42C690
split-complementary
#4E42C6 #C69042 #78C642
monochromatic
#28216D #392F9C #4E42C6 #7A71D4 #A6A0E2

Accessibility & contrast

On white

7.20
#4E42C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4E42C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C6
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C6#FFFFFF#000000##FFFFFF
##4E42C61.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#0052C3
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4e42c6;
/* rgb */ color: rgb(78, 66, 198);
/* oklch */ color: oklch(47.6% 0.197 279.9);
Tailwind
colors: {
  custom: {
    50: '#8c77d8',
    500: '#4e42c6',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c6;
$custom-light: #8c77d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c6",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 245.455,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47593,
    "c": 0.19657,
    "h": 279.9
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#4E42C6
secondary
#CACF95
accent
#DD4BD0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4E42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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