#5F51F6#5F51F6

#5F51F6 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.3% C 0.236 H 279.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5F51F6
RGBrgb(95, 81, 246)
HSLhsl(245, 90%, 64%)
HSVhsv(245, 67%, 96%)
CMYKcmyk(61.4%, 67.1%, 0%, 3.5%)
CIE-LABlab(45.59, 51.82, -80.65)
CIE-LCHlch(45.59, 95.86, 302.72°)
OKLaboklab(55.29% 0.0376 -0.2325)
OKLCHoklch(55.29% 0.236 279.2)
XYZxyz(24.2910, 14.9697, 88.7803)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51F6 #E8F651
analogous
#5196F6 #5F51F6 #B251F6
triadic
#5F51F6 #F65F51 #51F65F
tetradic
#5F51F6 #F65196 #E8F651 #51F6B2
square
#5F51F6 #F65196 #E8F651 #51F6B2
split-complementary
#5F51F6 #F6B251 #96F651
monochromatic
#1A0AC3 #2917F3 #5F51F6 #958BF9 #CAC5FC

Accessibility & contrast

On white

5.26
#5F51F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5F51F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51F6
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51F6#FFFFFF#000000##FFFFFF
##5F51F61.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FB
Deuteranopia (green-blind)
#0065F3
Tritanopia (blue-blind)
#007D9D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f51f6;
/* rgb */ color: rgb(95, 81, 246);
/* oklch */ color: oklch(55.3% 0.236 279.2);
Tailwind
colors: {
  custom: {
    50: '#9c83fa',
    500: '#5f51f6',
    950: '#000000',
  },
}
SCSS
$custom: #5f51f6;
$custom-light: #9c83fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51f6",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 245.091,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55294,
    "c": 0.23554,
    "h": 279.2
  },
  "luminance": 0.14972
}

Semantic roles & 50–950 ramp

primary
#5F51F6
secondary
#E9EEB5
accent
#E600D2
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5F51F6

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

Preview Lab → · Contrast checker → · Palette generator →

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