#5F4FD9#5F4FD9

#5F4FD9 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.6% C 0.202 H 282.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5F4FD9
RGBrgb(95, 79, 217)
HSLhsl(247, 64%, 58%)
HSVhsv(247, 64%, 85%)
CMYKcmyk(56.2%, 63.6%, 0%, 14.9%)
CIE-LABlab(42.81, 44.07, -68.79)
CIE-LCHlch(42.81, 81.69, 302.64°)
OKLaboklab(52.55% 0.0426 -0.1977)
OKLCHoklch(52.55% 0.202 282.2)
XYZxyz(20.0358, 13.0333, 67.0921)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FD9 #C9D94F
analogous
#4F84D9 #5F4FD9 #A44FD9
triadic
#5F4FD9 #D95F4F #4FD95F
tetradic
#5F4FD9 #D94F84 #C9D94F #4FD9A4
square
#5F4FD9 #D94F84 #C9D94F #4FD9A4
split-complementary
#5F4FD9 #D9A44F #84D94F
monochromatic
#2C1F8F #3B2AC1 #5F4FD9 #8D81E4 #BBB4EF

Accessibility & contrast

On white

5.82
#5F4FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5F4FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FD9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FD9#FFFFFF#000000##FFFFFF
##5F4FD91.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#0060D6
Tritanopia (blue-blind)
#1F718D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4fd9;
/* rgb */ color: rgb(95, 79, 217);
/* oklch */ color: oklch(52.6% 0.202 282.2);
Tailwind
colors: {
  custom: {
    50: '#9781e6',
    500: '#5f4fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fd9;
$custom-light: #9781e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fd9",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 246.957,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52554,
    "c": 0.20225,
    "h": 282.2
  },
  "luminance": 0.13035
}

Semantic roles & 50–950 ramp

primary
#5F4FD9
secondary
#D7DDA6
accent
#E740D4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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