#5F4DC5#5F4DC5

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

Color values

HEX#5F4DC5
RGBrgb(95, 77, 197)
HSLhsl(249, 51%, 54%)
HSVhsv(249, 61%, 77%)
CMYKcmyk(51.8%, 60.9%, 0%, 22.7%)
CIE-LABlab(40.85, 39.12, -60.45)
CIE-LCHlch(40.85, 72.01, 302.91°)
OKLaboklab(50.64% 0.046 -0.1732)
OKLCHoklch(50.64% 0.179 284.9)
XYZxyz(17.4482, 11.7710, 54.1651)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DC5 #B3C54D
analogous
#4D77C5 #5F4DC5 #9B4DC5
triadic
#5F4DC5 #C55F4D #4DC55F
tetradic
#5F4DC5 #C54D77 #B3C54D #4DC59B
square
#5F4DC5 #C54D77 #B3C54D #4DC59B
split-complementary
#5F4DC5 #C59B4D #77C54D
monochromatic
#312572 #4534A0 #5F4DC5 #887BD4 #B2A9E3

Accessibility & contrast

On white

6.26
#5F4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5F4DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DC5
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DC5#FFFFFF#000000##FFFFFF
##5F4DC51.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#376982
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4dc5;
/* rgb */ color: rgb(95, 77, 197);
/* oklch */ color: oklch(50.6% 0.179 284.9);
Tailwind
colors: {
  custom: {
    50: '#9580d7',
    500: '#5f4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dc5;
$custom-light: #9580d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dc5",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 249,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50644,
    "c": 0.17924,
    "h": 284.9
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#5F4DC5
secondary
#C9D19D
accent
#DA4DC5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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