#5F4DCA#5F4DCA

#5F4DCA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.186 H 284.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5F4DCA
RGBrgb(95, 77, 202)
HSLhsl(249, 54%, 55%)
HSVhsv(249, 62%, 79%)
CMYKcmyk(53%, 61.9%, 0%, 20.8%)
CIE-LABlab(41.22, 40.65, -62.75)
CIE-LCHlch(41.22, 74.76, 302.93°)
OKLaboklab(51.03% 0.0457 -0.18)
OKLCHoklch(51.03% 0.186 284.2)
XYZxyz(18.0306, 12.0039, 57.2326)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DCA #B8CA4D
analogous
#4D7ACA #5F4DCA #9E4DCA
triadic
#5F4DCA #CA5F4D #4DCA5F
tetradic
#5F4DCA #CA4D7A #B8CA4D #4DCA9E
square
#5F4DCA #CA4D7A #B8CA4D #4DCA9E
split-complementary
#5F4DCA #CA9E4D #7ACA4D
monochromatic
#302479 #4332A8 #5F4DCA #897CD8 #B4ABE6

Accessibility & contrast

On white

6.17
#5F4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DCA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DCA#FFFFFF#000000##FFFFFF
##5F4DCA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#326B84
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4dca;
/* rgb */ color: rgb(95, 77, 202);
/* oklch */ color: oklch(51.0% 0.186 284.2);
Tailwind
colors: {
  custom: {
    50: '#9580db',
    500: '#5f4dca',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dca;
$custom-light: #9580db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dca",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 248.64,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51034,
    "c": 0.18568,
    "h": 284.2
  },
  "luminance": 0.12005
}

Semantic roles & 50–950 ramp

primary
#5F4DCA
secondary
#CCD49F
accent
#DD4AC8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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