#5D5AAA#5D5AAA

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

Color values

HEX#5D5AAA
RGBrgb(93, 90, 170)
HSLhsl(242, 32%, 51%)
HSVhsv(242, 47%, 67%)
CMYKcmyk(45.3%, 47.1%, 0%, 33.3%)
CIE-LABlab(42.06, 22.45, -42.69)
CIE-LCHlch(42.06, 48.23, 297.74°)
OKLaboklab(50.94% 0.0274 -0.121)
OKLCHoklch(50.94% 0.124 282.8)
XYZxyz(15.4239, 12.5411, 39.6304)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5AAA #A7AA5A
analogous
#5A7FAA #5D5AAA #855AAA
triadic
#5D5AAA #AA5D5A #5AAA5D
tetradic
#5D5AAA #AA5A7F #A7AA5A #5AAA85
square
#5D5AAA #AA5A7F #A7AA5A #5AAA85
split-complementary
#5D5AAA #AA855A #7FAA5A
monochromatic
#302F5B #464483 #5D5AAA #8582BF #ACABD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D5AAA#FFFFFF#000000##FFFFFF
##5D5AAA1.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)
#3A66AD
Deuteranopia (green-blind)
#3661A8
Tritanopia (blue-blind)
#446B7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5d5aaa;
/* rgb */ color: rgb(93, 90, 170);
/* oklch */ color: oklch(50.9% 0.124 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f88c4',
    500: '#5d5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5d5aaa;
$custom-light: #8f88c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5aaa",
  "rgb": {
    "r": 93,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 242.25,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50937,
    "c": 0.12407,
    "h": 282.8
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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