#5F4DCC#5F4DCC

#5F4DCC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.2% C 0.188 H 284.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5F4DCC
RGBrgb(95, 77, 204)
HSLhsl(249, 55%, 55%)
HSVhsv(249, 62%, 80%)
CMYKcmyk(53.4%, 62.3%, 0%, 20%)
CIE-LABlab(41.37, 41.26, -63.66)
CIE-LCHlch(41.37, 75.86, 302.95°)
OKLaboklab(51.19% 0.0455 -0.1827)
OKLCHoklch(51.19% 0.188 284)
XYZxyz(18.2690, 12.0993, 58.4878)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DCC #BACC4D
analogous
#4D7ACC #5F4DCC #9F4DCC
triadic
#5F4DCC #CC5F4D #4DCC5F
tetradic
#5F4DCC #CC4D7A #BACC4D #4DCC9F
square
#5F4DCC #CC4D7A #BACC4D #4DCC9F
split-complementary
#5F4DCC #CC9F4D #7ACC4D
monochromatic
#30237B #4231AB #5F4DCC #8A7DDA #B5ACE7

Accessibility & contrast

On white

6.14
#5F4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5F4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DCC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DCC#FFFFFF#000000##FFFFFF
##5F4DCC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#306C85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4dcc;
/* rgb */ color: rgb(95, 77, 204);
/* oklch */ color: oklch(51.2% 0.188 284.0);
Tailwind
colors: {
  custom: {
    50: '#9680dc',
    500: '#5f4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dcc;
$custom-light: #9680dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dcc",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 248.504,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.18825,
    "h": 284
  },
  "luminance": 0.121
}

Semantic roles & 50–950 ramp

primary
#5F4DCC
secondary
#CDD5A0
accent
#DF49CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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