#4E42C5#4E42C5

#4E42C5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.5% C 0.195 H 280.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4E42C5
RGBrgb(78, 66, 197)
HSLhsl(245, 53%, 52%)
HSVhsv(245, 66%, 77%)
CMYKcmyk(60.4%, 66.5%, 0%, 22.7%)
CIE-LABlab(37.02, 42.67, -66.76)
CIE-LCHlch(37.02, 79.24, 302.59°)
OKLaboklab(47.51% 0.0341 -0.1923)
OKLCHoklch(47.51% 0.195 280)
XYZxyz(15.1650, 9.5462, 53.8560)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C5 #B9C542
analogous
#4278C5 #4E42C5 #9042C5
triadic
#4E42C5 #C54E42 #42C54E
tetradic
#4E42C5 #C54278 #B9C542 #42C590
square
#4E42C5 #C54278 #B9C542 #42C590
split-complementary
#4E42C5 #C59042 #78C542
monochromatic
#28216C #392F9A #4E42C5 #7A71D3 #A6A0E2

Accessibility & contrast

On white

7.22
#4E42C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4E42C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C5
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C5#FFFFFF#000000##FFFFFF
##4E42C51.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e42c5;
/* rgb */ color: rgb(78, 66, 197);
/* oklch */ color: oklch(47.5% 0.195 280.0);
Tailwind
colors: {
  custom: {
    50: '#8c77d8',
    500: '#4e42c5',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c5;
$custom-light: #8c77d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c5",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 245.496,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47505,
    "c": 0.19531,
    "h": 280
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#4E42C5
secondary
#C9CE95
accent
#DC4BCF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4E42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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