#5E4FC2#5E4FC2

#5E4FC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.173 H 284.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5E4FC2
RGBrgb(94, 79, 194)
HSLhsl(248, 49%, 54%)
HSVhsv(248, 59%, 76%)
CMYKcmyk(51.5%, 59.3%, 0%, 23.9%)
CIE-LABlab(41.00, 36.82, -58.47)
CIE-LCHlch(41.00, 69.10, 302.20°)
OKLaboklab(50.67% 0.0427 -0.1674)
OKLCHoklch(50.67% 0.173 284.3)
XYZxyz(17.1468, 11.8658, 52.4153)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FC2 #B3C24F
analogous
#4F79C2 #5E4FC2 #974FC2
triadic
#5E4FC2 #C25E4F #4FC25E
tetradic
#5E4FC2 #C24F79 #B3C24F #4FC297
square
#5E4FC2 #C24F79 #B3C24F #4FC297
split-complementary
#5E4FC2 #C2974F #79C24F
monochromatic
#302770 #44379D #5E4FC2 #887CD2 #B1AAE2

Accessibility & contrast

On white

6.23
#5E4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5E4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4FC2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FC2#FFFFFF#000000##FFFFFF
##5E4FC21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#376A81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5e4fc2;
/* rgb */ color: rgb(94, 79, 194);
/* oklch */ color: oklch(50.7% 0.173 284.3);
Tailwind
colors: {
  custom: {
    50: '#9481d5',
    500: '#5e4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fc2;
$custom-light: #9481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fc2",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 247.826,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50666,
    "c": 0.17277,
    "h": 284.3
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#5E4FC2
secondary
#C9CF9E
accent
#D850C6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5E4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

#5E4FC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva