#5F4FC0#5F4FC0

#5F4FC0 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.6% C 0.170 H 285.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5F4FC0
RGBrgb(95, 79, 192)
HSLhsl(248, 47%, 53%)
HSVhsv(248, 59%, 75%)
CMYKcmyk(50.5%, 58.9%, 0%, 24.7%)
CIE-LABlab(40.94, 36.41, -57.39)
CIE-LCHlch(40.94, 67.97, 302.39°)
OKLaboklab(50.6% 0.0441 -0.1642)
OKLCHoklch(50.6% 0.17 285)
XYZxyz(17.0269, 11.8298, 51.2451)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FC0 #B0C04F
analogous
#4F77C0 #5F4FC0 #984FC0
triadic
#5F4FC0 #C05F4F #4FC05F
tetradic
#5F4FC0 #C04F77 #B0C04F #4FC098
square
#5F4FC0 #C04F77 #B0C04F #4FC098
split-complementary
#5F4FC0 #C0984F #77C04F
monochromatic
#31276D #45379A #5F4FC0 #887CD0 #B1A9E0

Accessibility & contrast

On white

6.24
#5F4FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5F4FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FC0
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FC0#FFFFFF#000000##FFFFFF
##5F4FC01.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#3B6980
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4fc0;
/* rgb */ color: rgb(95, 79, 192);
/* oklch */ color: oklch(50.6% 0.170 285.0);
Tailwind
colors: {
  custom: {
    50: '#9481d4',
    500: '#5f4fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fc0;
$custom-light: #9481d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fc0",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 192
  },
  "hsl": {
    "h": 248.496,
    "s": 47.28,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50599,
    "c": 0.17003,
    "h": 285
  },
  "luminance": 0.11831
}

Semantic roles & 50–950 ramp

primary
#5F4FC0
secondary
#C7CE9D
accent
#D751C4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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