#5F5CF7#5F5CF7

#5F5CF7 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.1% C 0.224 H 277.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5F5CF7
RGBrgb(95, 92, 247)
HSLhsl(241, 91%, 66%)
HSVhsv(241, 63%, 97%)
CMYKcmyk(61.5%, 62.8%, 0%, 3.1%)
CIE-LABlab(48.01, 45.86, -77.26)
CIE-LCHlch(48.01, 89.85, 300.70°)
OKLaboklab(57.07% 0.029 -0.2225)
OKLCHoklch(57.07% 0.224 277.4)
XYZxyz(25.3295, 16.8006, 89.8857)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CF7 #F4F75C
analogous
#5CA7F7 #5F5CF7 #AD5CF7
triadic
#5F5CF7 #F75F5C #5CF75F
tetradic
#5F5CF7 #F75CA7 #F4F75C #5CF7AD
square
#5F5CF7 #F75CA7 #F4F75C #5CF7AD
split-complementary
#5F5CF7 #F7AD5C #A7F75C
monochromatic
#0E0ACE #2622F4 #5F5CF7 #9896FA #D2D1FD

Accessibility & contrast

On white

4.82
#5F5CF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5F5CF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CF7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CF7#FFFFFF#000000##FFFFFF
##5F5CF71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FC
Deuteranopia (green-blind)
#006BF4
Tritanopia (blue-blind)
#0083A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5cf7;
/* rgb */ color: rgb(95, 92, 247);
/* oklch */ color: oklch(57.1% 0.224 277.4);
Tailwind
colors: {
  custom: {
    50: '#9b8bfb',
    500: '#5f5cf7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cf7;
$custom-light: #9b8bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cf7",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 247
  },
  "hsl": {
    "h": 241.161,
    "s": 90.643,
    "l": 66.471
  },
  "oklch": {
    "l": 0.57071,
    "c": 0.22443,
    "h": 277.4
  },
  "luminance": 0.16803
}

Semantic roles & 50–950 ramp

primary
#5F5CF7
secondary
#F0F1BE
accent
#E600E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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