#5F5BE5#5F5BE5

#5F5BE5 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.5% C 0.203 H 278.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F5BE5
RGBrgb(95, 91, 229)
HSLhsl(242, 73%, 63%)
HSVhsv(242, 60%, 90%)
CMYKcmyk(58.5%, 60.3%, 0%, 10.2%)
CIE-LABlab(46.41, 40.76, -69.76)
CIE-LCHlch(46.41, 80.80, 300.30°)
OKLaboklab(55.47% 0.0309 -0.2005)
OKLCHoklch(55.47% 0.203 278.8)
XYZxyz(22.5988, 15.5706, 75.9281)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BE5 #E1E55B
analogous
#5B9CE5 #5F5BE5 #A45BE5
triadic
#5F5BE5 #E55F5B #5BE55F
tetradic
#5F5BE5 #E55B9C #E1E55B #5BE5A4
square
#5F5BE5 #E55B9C #E1E55B #5BE5A4
split-complementary
#5F5BE5 #E5A45B #9CE55B
monochromatic
#1F1BAB #2B26DD #5F5BE5 #9390ED #C6C5F6

Accessibility & contrast

On white

5.10
#5F5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5F5BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BE5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BE5#FFFFFF#000000##FFFFFF
##5F5BE51.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0068E2
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5be5;
/* rgb */ color: rgb(95, 91, 229);
/* oklch */ color: oklch(55.5% 0.203 278.8);
Tailwind
colors: {
  custom: {
    50: '#998aee',
    500: '#5f5be5',
    950: '#000000',
  },
}
SCSS
$custom: #5f5be5;
$custom-light: #998aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5be5",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 241.739,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55467,
    "c": 0.2029,
    "h": 278.8
  },
  "luminance": 0.15572
}

Semantic roles & 50–950 ramp

primary
#5F5BE5
secondary
#E5E7B5
accent
#D511CF
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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