#5958F5#5958F5

#5958F5 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.9% C 0.228 H 276.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5958F5
RGBrgb(89, 88, 245)
HSLhsl(240, 89%, 65%)
HSVhsv(240, 64%, 96%)
CMYKcmyk(63.7%, 64.1%, 0%, 3.9%)
CIE-LABlab(46.57, 46.71, -78.51)
CIE-LCHlch(46.57, 91.35, 300.75°)
OKLaboklab(55.87% 0.0253 -0.2264)
OKLCHoklch(55.87% 0.228 276.4)
XYZxyz(24.0856, 15.6938, 88.1284)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5958F5 #F4F558
analogous
#58A6F5 #5958F5 #A758F5
triadic
#5958F5 #F55958 #58F559
tetradic
#5958F5 #F558A6 #F4F558 #58F5A7
square
#5958F5 #F558A6 #F4F558 #58F5A7
split-complementary
#5958F5 #F5A758 #A6F558
monochromatic
#0D0CC7 #201EF2 #5958F5 #9292F8 #CCCBFC

Accessibility & contrast

On white

5.07
#5958F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5958F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5958F5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5958F5#FFFFFF#000000##FFFFFF
##5958F51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FA
Deuteranopia (green-blind)
#0067F2
Tritanopia (blue-blind)
#00819F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5958f5;
/* rgb */ color: rgb(89, 88, 245);
/* oklch */ color: oklch(55.9% 0.228 276.4);
Tailwind
colors: {
  custom: {
    50: '#9888fa',
    500: '#5958f5',
    950: '#000000',
  },
}
SCSS
$custom: #5958f5;
$custom-light: #9888fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5958f5",
  "rgb": {
    "r": 89,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 240.382,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.55869,
    "c": 0.2278,
    "h": 276.4
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#5958F5
secondary
#EFEFBA
accent
#E500E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5958F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5958F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva