#5F56F5#5F56F5

#5F56F5 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 56.0% C 0.229 H 278.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F56F5
RGBrgb(95, 86, 245)
HSLhsl(243, 89%, 65%)
HSVhsv(243, 65%, 96%)
CMYKcmyk(61.2%, 64.9%, 0%, 3.9%)
CIE-LABlab(46.55, 48.69, -78.52)
CIE-LCHlch(46.55, 92.40, 301.80°)
OKLaboklab(55.96% 0.0339 -0.2263)
OKLCHoklch(55.96% 0.229 278.5)
XYZxyz(24.5233, 15.6792, 88.1026)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56F5 #ECF556
analogous
#569DF5 #5F56F5 #AE56F5
triadic
#5F56F5 #F55F56 #56F55F
tetradic
#5F56F5 #F5569D #ECF556 #56F5AE
square
#5F56F5 #F5569D #ECF556 #56F5AE
split-complementary
#5F56F5 #F5AE56 #9DF556
monochromatic
#160CC5 #281CF2 #5F56F5 #9690F8 #CCCAFC

Accessibility & contrast

On white

5.08
#5F56F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F56F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56F5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56F5#FFFFFF#000000##FFFFFF
##5F56F51.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FA
Deuteranopia (green-blind)
#0068F2
Tritanopia (blue-blind)
#007F9E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f56f5;
/* rgb */ color: rgb(95, 86, 245);
/* oklch */ color: oklch(56.0% 0.229 278.5);
Tailwind
colors: {
  custom: {
    50: '#9b87fa',
    500: '#5f56f5',
    950: '#000000',
  },
}
SCSS
$custom: #5f56f5;
$custom-light: #9b87fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56f5",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 243.396,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.55961,
    "c": 0.22881,
    "h": 278.5
  },
  "luminance": 0.15681
}

Semantic roles & 50–950 ramp

primary
#5F56F5
secondary
#EBEFB8
accent
#E500D8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #5F56F5

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

Preview Lab → · Contrast checker → · Palette generator →

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