#5E51CE#5E51CE

#5E51CE is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.186 H 282.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5E51CE
RGBrgb(94, 81, 206)
HSLhsl(246, 56%, 56%)
HSVhsv(246, 61%, 81%)
CMYKcmyk(54.4%, 60.7%, 0%, 19.2%)
CIE-LABlab(42.34, 39.33, -63.25)
CIE-LCHlch(42.34, 74.48, 301.87°)
OKLaboklab(51.92% 0.0402 -0.1815)
OKLCHoklch(51.92% 0.186 282.5)
XYZxyz(18.6957, 12.7197, 59.8505)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51CE #C1CE51
analogous
#5183CE #5E51CE #9D51CE
triadic
#5E51CE #CE5E51 #51CE5E
tetradic
#5E51CE #CE5183 #C1CE51 #51CE9D
square
#5E51CE #CE5183 #C1CE51 #51CE9D
split-complementary
#5E51CE #CE9D51 #83CE51
monochromatic
#2E2480 #3F32B0 #5E51CE #8A81DB #B6B1E9

Accessibility & contrast

On white

5.93
#5E51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5E51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51CE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51CE#FFFFFF#000000##FFFFFF
##5E51CE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#2B6F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e51ce;
/* rgb */ color: rgb(94, 81, 206);
/* oklch */ color: oklch(51.9% 0.186 282.5);
Tailwind
colors: {
  custom: {
    50: '#9582de',
    500: '#5e51ce',
    950: '#000000',
  },
}
SCSS
$custom: #5e51ce;
$custom-light: #9582de;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51ce",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 246.24,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51924,
    "c": 0.18587,
    "h": 282.5
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#5E51CE
secondary
#D2D7A4
accent
#DF48D0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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