#5F5AF7#5F5AF7

#5F5AF7 is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.8% C 0.227 H 277.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5F5AF7
RGBrgb(95, 90, 247)
HSLhsl(242, 91%, 66%)
HSVhsv(242, 64%, 97%)
CMYKcmyk(61.5%, 63.6%, 0%, 3.1%)
CIE-LABlab(47.57, 47.02, -77.97)
CIE-LCHlch(47.57, 91.06, 301.09°)
OKLaboklab(56.75% 0.0306 -0.2247)
OKLCHoklch(56.75% 0.227 277.8)
XYZxyz(25.1586, 16.4586, 89.8287)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AF7 #F2F75A
analogous
#5AA3F7 #5F5AF7 #AD5AF7
triadic
#5F5AF7 #F75F5A #5AF75F
tetradic
#5F5AF7 #F75AA3 #F2F75A #5AF7AD
square
#5F5AF7 #F75AA3 #F2F75A #5AF7AD
split-complementary
#5F5AF7 #F7AD5A #A3F75A
monochromatic
#100ACD #2620F4 #5F5AF7 #9894FA #D0CFFD

Accessibility & contrast

On white

4.89
#5F5AF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5F5AF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AF7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AF7#FFFFFF#000000##FFFFFF
##5F5AF71.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FC
Deuteranopia (green-blind)
#006AF4
Tritanopia (blue-blind)
#0082A0
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f5af7;
/* rgb */ color: rgb(95, 90, 247);
/* oklch */ color: oklch(56.8% 0.227 277.8);
Tailwind
colors: {
  custom: {
    50: '#9c89fb',
    500: '#5f5af7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5af7;
$custom-light: #9c89fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5af7",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 241.911,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.56752,
    "c": 0.22673,
    "h": 277.8
  },
  "luminance": 0.16461
}

Semantic roles & 50–950 ramp

primary
#5F5AF7
secondary
#EFF0BD
accent
#E600DE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5F5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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