#5F51E7#5F51E7

#5F51E7 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.217 H 280.5°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5F51E7
RGBrgb(95, 81, 231)
HSLhsl(246, 76%, 61%)
HSVhsv(246, 65%, 91%)
CMYKcmyk(58.9%, 64.9%, 0%, 9.4%)
CIE-LABlab(44.36, 47.22, -74.23)
CIE-LCHlch(44.36, 87.98, 302.46°)
OKLaboklab(54.02% 0.0394 -0.2137)
OKLCHoklch(54.02% 0.217 280.5)
XYZxyz(22.0810, 14.0857, 77.1411)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51E7 #D9E751
analogous
#518EE7 #5F51E7 #AA51E7
triadic
#5F51E7 #E75F51 #51E75F
tetradic
#5F51E7 #E7518E #D9E751 #51E7AA
square
#5F51E7 #E7518E #D9E751 #51E7AA
split-complementary
#5F51E7 #E7AA51 #8EE751
monochromatic
#2417A7 #301EDC #5F51E7 #9087EE #C2BDF6

Accessibility & contrast

On white

5.50
#5F51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5F51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51E7
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51E7#FFFFFF#000000##FFFFFF
##5F51E71.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f51e7;
/* rgb */ color: rgb(95, 81, 231);
/* oklch */ color: oklch(54.0% 0.217 280.5);
Tailwind
colors: {
  custom: {
    50: '#9a83f0',
    500: '#5f51e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f51e7;
$custom-light: #9a83f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51e7",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 245.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54019,
    "c": 0.21732,
    "h": 280.5
  },
  "luminance": 0.14087
}

Semantic roles & 50–950 ramp

primary
#5F51E7
secondary
#E1E6AE
accent
#D80EC5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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