#5F4DC0#5F4DC0

#5F4DC0 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.3% C 0.173 H 285.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5F4DC0
RGBrgb(95, 77, 192)
HSLhsl(249, 48%, 53%)
HSVhsv(249, 60%, 75%)
CMYKcmyk(50.5%, 59.9%, 0%, 24.7%)
CIE-LABlab(40.48, 37.61, -58.14)
CIE-LCHlch(40.48, 69.24, 302.90°)
OKLaboklab(50.26% 0.0462 -0.1664)
OKLCHoklch(50.26% 0.173 285.5)
XYZxyz(16.8848, 11.5456, 51.1978)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DC0 #AEC04D
analogous
#4D75C0 #5F4DC0 #984DC0
triadic
#5F4DC0 #C05F4D #4DC05F
tetradic
#5F4DC0 #C04D75 #AEC04D #4DC098
square
#5F4DC0 #C04D75 #AEC04D #4DC098
split-complementary
#5F4DC0 #C0984D #75C04D
monochromatic
#31266C #463699 #5F4DC0 #887AD0 #B0A7E0

Accessibility & contrast

On white

6.35
#5F4DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5F4DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DC0
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DC0#FFFFFF#000000##FFFFFF
##5F4DC01.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#3B687F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4dc0;
/* rgb */ color: rgb(95, 77, 192);
/* oklch */ color: oklch(50.3% 0.173 285.5);
Tailwind
colors: {
  custom: {
    50: '#947fd4',
    500: '#5f4dc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dc0;
$custom-light: #947fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dc0",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 192
  },
  "hsl": {
    "h": 249.391,
    "s": 47.718,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50261,
    "c": 0.17272,
    "h": 285.5
  },
  "luminance": 0.11546
}

Semantic roles & 50–950 ramp

primary
#5F4DC0
secondary
#C6CD9B
accent
#D750C2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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