#5E51AE#5E51AE

#5E51AE is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.143 H 286.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5E51AE
RGBrgb(94, 81, 174)
HSLhsl(248, 36%, 50%)
HSVhsv(248, 53%, 68%)
CMYKcmyk(46%, 53.4%, 0%, 31.8%)
CIE-LABlab(40.11, 29.50, -48.17)
CIE-LCHlch(40.11, 56.48, 301.49°)
OKLaboklab(49.57% 0.0402 -0.1371)
OKLCHoklch(49.57% 0.143 286.4)
XYZxyz(15.1963, 11.3199, 41.4205)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51AE #A1AE51
analogous
#5173AE #5E51AE #8C51AE
triadic
#5E51AE #AE5E51 #51AE5E
tetradic
#5E51AE #AE5173 #A1AE51 #51AE8C
square
#5E51AE #AE5173 #A1AE51 #51AE8C
split-complementary
#5E51AE #AE8C51 #73AE51
monochromatic
#312A5A #473E84 #5E51AE #857BC1 #ABA5D5

Accessibility & contrast

On white

6.43
#5E51AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5E51AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51AE
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51AE#FFFFFF#000000##FFFFFF
##5E51AE1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2361B1
Deuteranopia (green-blind)
#215CAC
Tritanopia (blue-blind)
#446577
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e51ae;
/* rgb */ color: rgb(94, 81, 174);
/* oklch */ color: oklch(49.6% 0.143 286.4);
Tailwind
colors: {
  custom: {
    50: '#9182c7',
    500: '#5e51ae',
    950: '#000000',
  },
}
SCSS
$custom: #5e51ae;
$custom-light: #9182c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51ae",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 248.387,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.49574,
    "c": 0.14289,
    "h": 286.4
  },
  "luminance": 0.11321
}

Semantic roles & 50–950 ramp

primary
#5E51AE
secondary
#BCC299
accent
#CC5BBD
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5E51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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