#5F57EC#5F57EC

#5F57EC is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.217 H 279.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5F57EC
RGBrgb(95, 87, 236)
HSLhsl(243, 80%, 63%)
HSVhsv(243, 63%, 93%)
CMYKcmyk(59.7%, 63.1%, 0%, 7.5%)
CIE-LABlab(46.05, 45.32, -74.29)
CIE-LCHlch(46.05, 87.02, 301.38°)
OKLaboklab(55.37% 0.034 -0.2139)
OKLCHoklch(55.37% 0.217 279)
XYZxyz(23.2630, 15.3037, 81.0687)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F57EC #E4EC57
analogous
#579AEC #5F57EC #A957EC
triadic
#5F57EC #EC5F57 #57EC5F
tetradic
#5F57EC #EC579A #E4EC57 #57ECA9
square
#5F57EC #EC579A #E4EC57 #57ECA9
split-complementary
#5F57EC #ECA957 #9AEC57
monochromatic
#1D14B4 #2B20E6 #5F57EC #938EF2 #C8C5F8

Accessibility & contrast

On white

5.17
#5F57EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5F57EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F57EC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F57EC#FFFFFF#000000##FFFFFF
##5F57EC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0067E9
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f57ec;
/* rgb */ color: rgb(95, 87, 236);
/* oklch */ color: oklch(55.4% 0.217 279.0);
Tailwind
colors: {
  custom: {
    50: '#9a87f3',
    500: '#5f57ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f57ec;
$custom-light: #9a87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f57ec",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 243.221,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55372,
    "c": 0.21655,
    "h": 279
  },
  "luminance": 0.15305
}

Semantic roles & 50–950 ramp

primary
#5F57EC
secondary
#E7EAB5
accent
#DC0AD1
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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