#5E51CC#5E51CC

#5E51CC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.183 H 282.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5E51CC
RGBrgb(94, 81, 204)
HSLhsl(246, 55%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(53.9%, 60.3%, 0%, 20%)
CIE-LABlab(42.19, 38.71, -62.34)
CIE-LCHlch(42.19, 73.38, 301.84°)
OKLaboklab(51.77% 0.0403 -0.1788)
OKLCHoklch(51.77% 0.183 282.7)
XYZxyz(18.4543, 12.6231, 58.5791)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51CC #BFCC51
analogous
#5181CC #5E51CC #9B51CC
triadic
#5E51CC #CC5E51 #51CC5E
tetradic
#5E51CC #CC5181 #BFCC51 #51CC9B
square
#5E51CC #CC5181 #BFCC51 #51CC9B
split-complementary
#5E51CC #CC9B51 #81CC51
monochromatic
#2E257E #4033AD #5E51CC #8A80DA #B6B0E8

Accessibility & contrast

On white

5.96
#5E51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5E51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51CC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51CC#FFFFFF#000000##FFFFFF
##5E51CC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#2D6E87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e51cc;
/* rgb */ color: rgb(94, 81, 204);
/* oklch */ color: oklch(51.8% 0.183 282.7);
Tailwind
colors: {
  custom: {
    50: '#9582dc',
    500: '#5e51cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e51cc;
$custom-light: #9582dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51cc",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 246.341,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.18327,
    "h": 282.7
  },
  "luminance": 0.12624
}

Semantic roles & 50–950 ramp

primary
#5E51CC
secondary
#D0D6A3
accent
#DE4ACE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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