#5E5AAA#5E5AAA

#5E5AAA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.124 H 283.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5E5AAA
RGBrgb(94, 90, 170)
HSLhsl(243, 32%, 51%)
HSVhsv(243, 47%, 67%)
CMYKcmyk(44.7%, 47.1%, 0%, 33.3%)
CIE-LABlab(42.14, 22.70, -42.55)
CIE-LCHlch(42.14, 48.23, 298.08°)
OKLaboklab(51.02% 0.0286 -0.1206)
OKLCHoklch(51.02% 0.124 283.3)
XYZxyz(15.5258, 12.5936, 39.6352)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5AAA #A6AA5A
analogous
#5A7EAA #5E5AAA #865AAA
triadic
#5E5AAA #AA5E5A #5AAA5E
tetradic
#5E5AAA #AA5A7E #A6AA5A #5AAA86
square
#5E5AAA #AA5A7E #A6AA5A #5AAA86
split-complementary
#5E5AAA #AA865A #7EAA5A
monochromatic
#312F5B #474483 #5E5AAA #8582BF #ADABD4

Accessibility & contrast

On white

5.97
#5E5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E5AAA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5AAA#FFFFFF#000000##FFFFFF
##5E5AAA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#3661A8
Tritanopia (blue-blind)
#466B7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5e5aaa;
/* rgb */ color: rgb(94, 90, 170);
/* oklch */ color: oklch(51.0% 0.124 283.3);
Tailwind
colors: {
  custom: {
    50: '#9088c4',
    500: '#5e5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5e5aaa;
$custom-light: #9088c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5aaa",
  "rgb": {
    "r": 94,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 243,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51019,
    "c": 0.12394,
    "h": 283.3
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#5E5AAA
secondary
#C0C29E
accent
#C860C3
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #5E5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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