#5F5EF7#5F5EF7

#5F5EF7 is a mid, highly saturated blue. Relative luminance 0.172; OKLCH L 57.4% C 0.222 H 277.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F5EF7
RGBrgb(95, 94, 247)
HSLhsl(240, 91%, 67%)
HSVhsv(240, 62%, 97%)
CMYKcmyk(61.5%, 61.9%, 0%, 3.1%)
CIE-LABlab(48.45, 44.70, -76.54)
CIE-LCHlch(48.45, 88.63, 300.29°)
OKLaboklab(57.39% 0.0274 -0.2204)
OKLCHoklch(57.39% 0.222 277.1)
XYZxyz(25.5051, 17.1517, 89.9442)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EF7 #F6F75E
analogous
#5EAAF7 #5F5EF7 #AC5EF7
triadic
#5F5EF7 #F75F5E #5EF75F
tetradic
#5F5EF7 #F75EAA #F6F75E #5EF7AC
square
#5F5EF7 #F75EAA #F6F75E #5EF7AC
split-complementary
#5F5EF7 #F7AC5E #AAF75E
monochromatic
#0C0AD0 #2524F4 #5F5EF7 #9998FA #D3D3FD

Accessibility & contrast

On white

4.74
#5F5EF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5F5EF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EF7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EF7#FFFFFF#000000##FFFFFF
##5F5EF71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFC
Deuteranopia (green-blind)
#006CF4
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f5ef7;
/* rgb */ color: rgb(95, 94, 247);
/* oklch */ color: oklch(57.4% 0.222 277.1);
Tailwind
colors: {
  custom: {
    50: '#9b8cfb',
    500: '#5f5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ef7;
$custom-light: #9b8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ef7",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 240.392,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.57394,
    "c": 0.22212,
    "h": 277.1
  },
  "luminance": 0.17154
}

Semantic roles & 50–950 ramp

primary
#5F5EF7
secondary
#F1F1C0
accent
#E600E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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