#5F5DF7#5F5DF7

#5F5DF7 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.223 H 277.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F5DF7
RGBrgb(95, 93, 247)
HSLhsl(241, 91%, 67%)
HSVhsv(241, 62%, 97%)
CMYKcmyk(61.5%, 62.3%, 0%, 3.1%)
CIE-LABlab(48.23, 45.28, -76.90)
CIE-LCHlch(48.23, 89.24, 300.49°)
OKLaboklab(57.23% 0.0282 -0.2215)
OKLCHoklch(57.23% 0.223 277.3)
XYZxyz(25.4167, 16.9750, 89.9148)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DF7 #F5F75D
analogous
#5DA8F7 #5F5DF7 #AC5DF7
triadic
#5F5DF7 #F75F5D #5DF75F
tetradic
#5F5DF7 #F75DA8 #F5F75D #5DF7AC
square
#5F5DF7 #F75DA8 #F5F75D #5DF7AC
split-complementary
#5F5DF7 #F7AC5D #A8F75D
monochromatic
#0D0ACF #2523F4 #5F5DF7 #9997FA #D2D2FD

Accessibility & contrast

On white

4.78
#5F5DF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5F5DF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DF7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DF7#FFFFFF#000000##FFFFFF
##5F5DF71.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FC
Deuteranopia (green-blind)
#006CF4
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5df7;
/* rgb */ color: rgb(95, 93, 247);
/* oklch */ color: oklch(57.2% 0.223 277.3);
Tailwind
colors: {
  custom: {
    50: '#9b8bfb',
    500: '#5f5df7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5df7;
$custom-light: #9b8bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5df7",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 240.779,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.22328,
    "h": 277.3
  },
  "luminance": 0.16977
}

Semantic roles & 50–950 ramp

primary
#5F5DF7
secondary
#F0F1BF
accent
#E600E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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