#5E51CA#5E51CA

#5E51CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.181 H 282.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5E51CA
RGBrgb(94, 81, 202)
HSLhsl(246, 53%, 55%)
HSVhsv(246, 60%, 79%)
CMYKcmyk(53.5%, 59.9%, 0%, 20.8%)
CIE-LABlab(42.04, 38.09, -61.42)
CIE-LCHlch(42.04, 72.27, 301.81°)
OKLaboklab(51.61% 0.0404 -0.1761)
OKLCHoklch(51.61% 0.181 282.9)
XYZxyz(18.2159, 12.5278, 57.3239)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51CA #BDCA51
analogous
#5181CA #5E51CA #9A51CA
triadic
#5E51CA #CA5E51 #51CA5E
tetradic
#5E51CA #CA5181 #BDCA51 #51CA9A
square
#5E51CA #CA5181 #BDCA51 #51CA9A
split-complementary
#5E51CA #CA9A51 #81CA51
monochromatic
#2F257B #4034AA #5E51CA #8980D8 #B5AFE7

Accessibility & contrast

On white

5.99
#5E51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5E51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51CA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51CA#FFFFFF#000000##FFFFFF
##5E51CA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#2F6E86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5e51ca;
/* rgb */ color: rgb(94, 81, 202);
/* oklch */ color: oklch(51.6% 0.181 282.9);
Tailwind
colors: {
  custom: {
    50: '#9582db',
    500: '#5e51ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e51ca;
$custom-light: #9582db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51ca",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 246.446,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51614,
    "c": 0.18066,
    "h": 282.9
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#5E51CA
secondary
#CFD5A2
accent
#DD4BCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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