#5D5ABA#5D5ABA

#5D5ABA is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.147 H 281.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5D5ABA
RGBrgb(93, 90, 186)
HSLhsl(242, 41%, 54%)
HSVhsv(242, 52%, 73%)
CMYKcmyk(50%, 51.6%, 0%, 27.1%)
CIE-LABlab(43.04, 27.40, -50.52)
CIE-LCHlch(43.04, 57.48, 298.48°)
OKLaboklab(51.99% 0.029 -0.144)
OKLCHoklch(51.99% 0.147 281.4)
XYZxyz(17.0306, 13.1837, 48.0922)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5ABA #B7BA5A
analogous
#5A87BA #5D5ABA #8D5ABA
triadic
#5D5ABA #BA5D5A #5ABA5D
tetradic
#5D5ABA #BA5A87 #B7BA5A #5ABA8D
square
#5D5ABA #BA5A87 #B7BA5A #5ABA8D
split-complementary
#5D5ABA #BA8D5A #87BA5A
monochromatic
#2F2D6C #423F97 #5D5ABA #8785CC #B2B0DE

Accessibility & contrast

On white

5.77
#5D5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5D5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D5ABA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5ABA#FFFFFF#000000##FFFFFF
##5D5ABA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#2262B8
Tritanopia (blue-blind)
#3A6F81
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5d5aba;
/* rgb */ color: rgb(93, 90, 186);
/* oklch */ color: oklch(52.0% 0.147 281.4);
Tailwind
colors: {
  custom: {
    50: '#9188cf',
    500: '#5d5aba',
    950: '#000000',
  },
}
SCSS
$custom: #5d5aba;
$custom-light: #9188cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5aba",
  "rgb": {
    "r": 93,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 241.875,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51986,
    "c": 0.14691,
    "h": 281.4
  },
  "luminance": 0.13185
}

Semantic roles & 50–950 ramp

primary
#5D5ABA
secondary
#CBCCA3
accent
#D157CD
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5D5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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