#5A58DC#5A58DC

#5A58DC is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.9% C 0.196 H 278.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5A58DC
RGBrgb(90, 88, 220)
HSLhsl(241, 65%, 60%)
HSVhsv(241, 60%, 86%)
CMYKcmyk(59.1%, 60%, 0%, 13.7%)
CIE-LABlab(44.69, 38.86, -67.47)
CIE-LCHlch(44.69, 77.86, 299.94°)
OKLaboklab(53.9% 0.028 -0.1939)
OKLCHoklch(53.9% 0.196 278.2)
XYZxyz(20.6203, 14.3189, 69.3735)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A58DC #DADC58
analogous
#5898DC #5A58DC #9C58DC
triadic
#5A58DC #DC5A58 #58DC5A
tetradic
#5A58DC #DC5898 #DADC58 #58DC9C
square
#5A58DC #DC5898 #DADC58 #58DC9C
split-complementary
#5A58DC #DC9C58 #98DC58
monochromatic
#222099 #2D2BCC #5A58DC #8C8BE7 #BEBDF1

Accessibility & contrast

On white

5.43
#5A58DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5A58DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A58DC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A58DC#FFFFFF#000000##FFFFFF
##5A58DC1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0064D9
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a58dc;
/* rgb */ color: rgb(90, 88, 220);
/* oklch */ color: oklch(53.9% 0.196 278.2);
Tailwind
colors: {
  custom: {
    50: '#9587e8',
    500: '#5a58dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a58dc;
$custom-light: #9587e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a58dc",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 240.909,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53901,
    "c": 0.19596,
    "h": 278.2
  },
  "luminance": 0.1432
}

Semantic roles & 50–950 ramp

primary
#5A58DC
secondary
#E0E1AF
accent
#CD18CA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A58DC

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

Preview Lab → · Contrast checker → · Palette generator →

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