#5F4FC5#5F4FC5

#5F4FC5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.177 H 284.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5F4FC5
RGBrgb(95, 79, 197)
HSLhsl(248, 50%, 54%)
HSVhsv(248, 60%, 77%)
CMYKcmyk(51.8%, 59.9%, 0%, 22.7%)
CIE-LABlab(41.30, 37.94, -59.72)
CIE-LCHlch(41.30, 70.75, 302.43°)
OKLaboklab(50.98% 0.0439 -0.1711)
OKLCHoklch(50.98% 0.177 284.4)
XYZxyz(17.5903, 12.0551, 54.2125)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FC5 #B5C54F
analogous
#4F7AC5 #5F4FC5 #9A4FC5
triadic
#5F4FC5 #C55F4F #4FC55F
tetradic
#5F4FC5 #C54F7A #B5C54F #4FC59A
square
#5F4FC5 #C54F7A #B5C54F #4FC59A
split-complementary
#5F4FC5 #C59A4F #7AC54F
monochromatic
#312674 #4435A2 #5F4FC5 #897DD4 #B3ABE3

Accessibility & contrast

On white

6.16
#5F4FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5F4FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FC5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FC5#FFFFFF#000000##FFFFFF
##5F4FC51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#376B82
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4fc5;
/* rgb */ color: rgb(95, 79, 197);
/* oklch */ color: oklch(51.0% 0.177 284.4);
Tailwind
colors: {
  custom: {
    50: '#9581d7',
    500: '#5f4fc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fc5;
$custom-light: #9581d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fc5",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 248.136,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50977,
    "c": 0.1766,
    "h": 284.4
  },
  "luminance": 0.12056
}

Semantic roles & 50–950 ramp

primary
#5F4FC5
secondary
#CAD19F
accent
#DA4EC7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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