#5F5AAA#5F5AAA

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

Color values

HEX#5F5AAA
RGBrgb(95, 90, 170)
HSLhsl(244, 32%, 51%)
HSVhsv(244, 47%, 67%)
CMYKcmyk(44.1%, 47.1%, 0%, 33.3%)
CIE-LABlab(42.23, 22.95, -42.42)
CIE-LCHlch(42.23, 48.23, 298.42°)
OKLaboklab(51.1% 0.0298 -0.1202)
OKLCHoklch(51.1% 0.124 283.9)
XYZxyz(15.6291, 12.6468, 39.6400)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AAA #A5AA5A
analogous
#5A7DAA #5F5AAA #875AAA
triadic
#5F5AAA #AA5F5A #5AAA5F
tetradic
#5F5AAA #AA5A7D #A5AA5A #5AAA87
square
#5F5AAA #AA5A7D #A5AA5A #5AAA87
split-complementary
#5F5AAA #AA875A #7DAA5A
monochromatic
#322F5B #484483 #5F5AAA #8682BF #ADABD4

Accessibility & contrast

On white

5.95
#5F5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AAA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AAA#FFFFFF#000000##FFFFFF
##5F5AAA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#3761A8
Tritanopia (blue-blind)
#486A7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f5aaa;
/* rgb */ color: rgb(95, 90, 170);
/* oklch */ color: oklch(51.1% 0.124 283.9);
Tailwind
colors: {
  custom: {
    50: '#9088c4',
    500: '#5f5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aaa;
$custom-light: #9088c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aaa",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 243.75,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51101,
    "c": 0.12382,
    "h": 283.9
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#5F5AAA
secondary
#BFC29E
accent
#C860C2
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #5F5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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