#5F50E6#5F50E6

#5F50E6 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.8% C 0.217 H 280.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5F50E6
RGBrgb(95, 80, 230)
HSLhsl(246, 75%, 61%)
HSVhsv(246, 65%, 90%)
CMYKcmyk(58.7%, 65.2%, 0%, 9.8%)
CIE-LABlab(44.06, 47.48, -74.15)
CIE-LCHlch(44.06, 88.04, 302.63°)
OKLaboklab(53.78% 0.0404 -0.2134)
OKLCHoklch(53.78% 0.217 280.7)
XYZxyz(21.8664, 13.8819, 76.3748)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F50E6 #D7E650
analogous
#508CE6 #5F50E6 #AA50E6
triadic
#5F50E6 #E65F50 #50E65F
tetradic
#5F50E6 #E6508C #D7E650 #50E6AA
square
#5F50E6 #E6508C #D7E650 #50E6AA
split-complementary
#5F50E6 #E6AA50 #8CE650
monochromatic
#2617A4 #321FDA #5F50E6 #9086EE #C1BBF5

Accessibility & contrast

On white

5.56
#5F50E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5F50E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F50E6
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F50E6#FFFFFF#000000##FFFFFF
##5F50E61.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#0063E3
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f50e6;
/* rgb */ color: rgb(95, 80, 230);
/* oklch */ color: oklch(53.8% 0.217 280.7);
Tailwind
colors: {
  custom: {
    50: '#9982ef',
    500: '#5f50e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f50e6;
$custom-light: #9982ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f50e6",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 230
  },
  "hsl": {
    "h": 246,
    "s": 75,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53782,
    "c": 0.21723,
    "h": 280.7
  },
  "luminance": 0.13883
}

Semantic roles & 50–950 ramp

primary
#5F50E6
secondary
#E0E5AC
accent
#D70EC3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F50E6

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

Preview Lab → · Contrast checker → · Palette generator →

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