#4E42D6#4E42D6

#4E42D6 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.0% C 0.216 H 278.4°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#4E42D6
RGBrgb(78, 66, 214)
HSLhsl(245, 64%, 55%)
HSVhsv(245, 69%, 84%)
CMYKcmyk(63.6%, 69.2%, 0%, 16.1%)
CIE-LABlab(38.50, 48.04, -74.18)
CIE-LCHlch(38.50, 88.38, 302.93°)
OKLaboklab(49.03% 0.0317 -0.214)
OKLCHoklch(49.03% 0.216 278.4)
XYZxyz(17.2238, 10.3698, 64.6992)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42D6 #CAD642
analogous
#4280D6 #4E42D6 #9842D6
triadic
#4E42D6 #D64E42 #42D64E
tetradic
#4E42D6 #D64280 #CAD642 #42D698
square
#4E42D6 #D64280 #CAD642 #42D698
split-complementary
#4E42D6 #D69842 #80D642
monochromatic
#241C82 #3227B4 #4E42D6 #7D74E1 #ACA7EC

Accessibility & contrast

On white

6.83
#4E42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4E42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E42D6
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42D6#FFFFFF#000000##FFFFFF
##4E42D61.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DA
Deuteranopia (green-blind)
#0055D3
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e42d6;
/* rgb */ color: rgb(78, 66, 214);
/* oklch */ color: oklch(49.0% 0.216 278.4);
Tailwind
colors: {
  custom: {
    50: '#8f78e4',
    500: '#4e42d6',
    950: '#000000',
  },
}
SCSS
$custom: #4e42d6;
$custom-light: #8f78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42d6",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 244.865,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49027,
    "c": 0.21637,
    "h": 278.4
  },
  "luminance": 0.10371
}

Semantic roles & 50–950 ramp

primary
#4E42D6
secondary
#D4D99B
accent
#E740DA
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4E42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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