#5F4DCF#5F4DCF

#5F4DCF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.4% C 0.192 H 283.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5F4DCF
RGBrgb(95, 77, 207)
HSLhsl(248, 58%, 56%)
HSVhsv(248, 63%, 81%)
CMYKcmyk(54.1%, 62.8%, 0%, 18.8%)
CIE-LABlab(41.60, 42.17, -65.02)
CIE-LCHlch(41.60, 77.50, 302.97°)
OKLaboklab(51.43% 0.0453 -0.1867)
OKLCHoklch(51.43% 0.192 283.6)
XYZxyz(18.6322, 12.2446, 60.4010)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DCF #BDCF4D
analogous
#4D7CCF #5F4DCF #A04DCF
triadic
#5F4DCF #CF5F4D #4DCF5F
tetradic
#5F4DCF #CF4D7C #BDCF4D #4DCFA0
square
#5F4DCF #CF4D7C #BDCF4D #4DCFA0
split-complementary
#5F4DCF #CFA04D #7CCF4D
monochromatic
#2F227F #412FAF #5F4DCF #8A7DDC #B6ADE9

Accessibility & contrast

On white

6.09
#5F4DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5F4DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DCF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DCF#FFFFFF#000000##FFFFFF
##5F4DCF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#2D6D87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4dcf;
/* rgb */ color: rgb(95, 77, 207);
/* oklch */ color: oklch(51.4% 0.192 283.6);
Tailwind
colors: {
  custom: {
    50: '#9680df',
    500: '#5f4dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dcf;
$custom-light: #9680df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dcf",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 248.308,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5143,
    "c": 0.19208,
    "h": 283.6
  },
  "luminance": 0.12246
}

Semantic roles & 50–950 ramp

primary
#5F4DCF
secondary
#CFD7A1
accent
#E147CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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