#5F4CD9#5F4CD9

#5F4CD9 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.1% C 0.206 H 282.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD9
RGBrgb(95, 76, 217)
HSLhsl(248, 65%, 57%)
HSVhsv(248, 65%, 85%)
CMYKcmyk(56.2%, 65%, 0%, 14.9%)
CIE-LABlab(42.17, 45.79, -69.84)
CIE-LCHlch(42.17, 83.51, 303.25°)
OKLaboklab(52.09% 0.0453 -0.2008)
OKLCHoklch(52.09% 0.206 282.7)
XYZxyz(19.8243, 12.6103, 67.0216)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD9 #C6D94C
analogous
#4C80D9 #5F4CD9 #A54CD9
triadic
#5F4CD9 #D95F4C #4CD95F
tetradic
#5F4CD9 #D94C80 #C6D94C #4CD9A5
square
#5F4CD9 #D94C80 #C6D94C #4CD9A5
split-complementary
#5F4CD9 #D9A54C #80D94C
monochromatic
#2D1E8D #3D29BF #5F4CD9 #8C7EE4 #B9B1EE

Accessibility & contrast

On white

5.96
#5F4CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5F4CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD9#FFFFFF#000000##FFFFFF
##5F4CD91.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#005FD6
Tritanopia (blue-blind)
#20708C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cd9;
/* rgb */ color: rgb(95, 76, 217);
/* oklch */ color: oklch(52.1% 0.206 282.7);
Tailwind
colors: {
  custom: {
    50: '#987fe6',
    500: '#5f4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd9;
$custom-light: #987fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd9",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 248.085,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.20585,
    "h": 282.7
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#5F4CD9
secondary
#D5DDA4
accent
#E840D1
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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