#5F5CD9#5F5CD9

#5F5CD9 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.7% C 0.186 H 279.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F5CD9
RGBrgb(95, 92, 217)
HSLhsl(241, 62%, 61%)
HSVhsv(241, 58%, 85%)
CMYKcmyk(56.2%, 57.6%, 0%, 14.9%)
CIE-LABlab(45.76, 36.36, -63.99)
CIE-LCHlch(45.76, 73.60, 299.61°)
OKLaboklab(54.72% 0.0303 -0.1836)
OKLCHoklch(54.72% 0.186 279.4)
XYZxyz(21.0669, 15.0955, 67.4358)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CD9 #D6D95C
analogous
#5C97D9 #5F5CD9 #9D5CD9
triadic
#5F5CD9 #D95F5C #5CD95F
tetradic
#5F5CD9 #D95C97 #D6D95C #5CD99D
square
#5F5CD9 #D95C97 #D6D95C #5CD99D
split-complementary
#5F5CD9 #D99D5C #97D95C
monochromatic
#262397 #332FC9 #5F5CD9 #908EE5 #C0BFF0

Accessibility & contrast

On white

5.22
#5F5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5F5CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CD9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CD9#FFFFFF#000000##FFFFFF
##5F5CD91.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#1C7A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f5cd9;
/* rgb */ color: rgb(95, 92, 217);
/* oklch */ color: oklch(54.7% 0.186 279.4);
Tailwind
colors: {
  custom: {
    50: '#978ae6',
    500: '#5f5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cd9;
$custom-light: #978ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cd9",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 241.44,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54719,
    "c": 0.18604,
    "h": 279.4
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#5F5CD9
secondary
#DFE0B1
accent
#CA1CC6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5F5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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