#5F56E6#5F56E6

#5F56E6 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.7% C 0.210 H 279.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5F56E6
RGBrgb(95, 86, 230)
HSLhsl(244, 74%, 62%)
HSVhsv(244, 63%, 90%)
CMYKcmyk(58.7%, 62.6%, 0%, 9.8%)
CIE-LABlab(45.36, 44.02, -72.03)
CIE-LCHlch(45.36, 84.42, 301.43°)
OKLaboklab(54.72% 0.0353 -0.2072)
OKLCHoklch(54.72% 0.21 279.7)
XYZxyz(22.3255, 14.8001, 76.5278)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56E6 #DDE656
analogous
#5695E6 #5F56E6 #A756E6
triadic
#5F56E6 #E65F56 #56E65F
tetradic
#5F56E6 #E65695 #DDE656 #56E6A7
square
#5F56E6 #E65695 #DDE656 #56E6A7
split-complementary
#5F56E6 #E6A756 #95E656
monochromatic
#2219A9 #2D21DE #5F56E6 #918BEE #C4C1F6

Accessibility & contrast

On white

5.30
#5F56E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5F56E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56E6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56E6#FFFFFF#000000##FFFFFF
##5F56E61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#0066E3
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f56e6;
/* rgb */ color: rgb(95, 86, 230);
/* oklch */ color: oklch(54.7% 0.210 279.7);
Tailwind
colors: {
  custom: {
    50: '#9986ef',
    500: '#5f56e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f56e6;
$custom-light: #9986ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56e6",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 230
  },
  "hsl": {
    "h": 243.75,
    "s": 74.227,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54724,
    "c": 0.2102,
    "h": 279.7
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#5F56E6
secondary
#E3E6B1
accent
#D60FCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F56E6

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

Preview Lab → · Contrast checker → · Palette generator →

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