#5E51CF#5E51CF

#5E51CF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.187 H 282.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5E51CF
RGBrgb(94, 81, 207)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 61%, 81%)
CMYKcmyk(54.6%, 60.9%, 0%, 18.8%)
CIE-LABlab(42.41, 39.64, -63.71)
CIE-LCHlch(42.41, 75.03, 301.89°)
OKLaboklab(52% 0.0401 -0.1828)
OKLCHoklch(52% 0.187 282.4)
XYZxyz(18.8175, 12.7684, 60.4924)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51CF #C2CF51
analogous
#5183CF #5E51CF #9D51CF
triadic
#5E51CF #CF5E51 #51CF5E
tetradic
#5E51CF #CF5183 #C2CF51 #51CF9D
square
#5E51CF #CF5183 #C2CF51 #51CF9D
split-complementary
#5E51CF #CF9D51 #83CF51
monochromatic
#2E2482 #3E31B2 #5E51CF #8A81DC #B7B1E9

Accessibility & contrast

On white

5.91
#5E51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5E51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51CF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51CF#FFFFFF#000000##FFFFFF
##5E51CF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#2A6F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e51cf;
/* rgb */ color: rgb(94, 81, 207);
/* oklch */ color: oklch(52.0% 0.187 282.4);
Tailwind
colors: {
  custom: {
    50: '#9582df',
    500: '#5e51cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e51cf;
$custom-light: #9582df;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51cf",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 246.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52002,
    "c": 0.18716,
    "h": 282.4
  },
  "luminance": 0.1277
}

Semantic roles & 50–950 ramp

primary
#5E51CF
secondary
#D2D8A4
accent
#E048D0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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