#5F4FD7#5F4FD7

#5F4FD7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.4% C 0.200 H 282.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5F4FD7
RGBrgb(95, 79, 215)
HSLhsl(247, 63%, 58%)
HSVhsv(247, 63%, 84%)
CMYKcmyk(55.8%, 63.3%, 0%, 15.7%)
CIE-LABlab(42.66, 43.45, -67.90)
CIE-LCHlch(42.66, 80.61, 302.62°)
OKLaboklab(52.39% 0.0428 -0.1951)
OKLCHoklch(52.39% 0.2 282.4)
XYZxyz(19.7773, 12.9299, 65.7304)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FD7 #C7D74F
analogous
#4F83D7 #5F4FD7 #A34FD7
triadic
#5F4FD7 #D75F4F #4FD75F
tetradic
#5F4FD7 #D74F83 #C7D74F #4FD7A3
square
#5F4FD7 #D74F83 #C7D74F #4FD7A3
split-complementary
#5F4FD7 #D7A34F #83D74F
monochromatic
#2C208C #3C2BBE #5F4FD7 #8C81E2 #BAB3EE

Accessibility & contrast

On white

5.86
#5F4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5F4FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FD7
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FD7#FFFFFF#000000##FFFFFF
##5F4FD71.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#22718C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4fd7;
/* rgb */ color: rgb(95, 79, 215);
/* oklch */ color: oklch(52.4% 0.200 282.4);
Tailwind
colors: {
  custom: {
    50: '#9781e4',
    500: '#5f4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fd7;
$custom-light: #9781e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fd7",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 247.059,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.19974,
    "h": 282.4
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#5F4FD7
secondary
#D6DCA6
accent
#E642D3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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