#5F5BEC#5F5BEC

#5F5BEC is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.0% C 0.212 H 278.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5F5BEC
RGBrgb(95, 91, 236)
HSLhsl(242, 79%, 64%)
HSVhsv(242, 61%, 93%)
CMYKcmyk(59.7%, 61.4%, 0%, 7.5%)
CIE-LABlab(46.93, 42.98, -72.85)
CIE-LCHlch(46.93, 84.58, 300.54°)
OKLaboklab(56.02% 0.0306 -0.2096)
OKLCHoklch(56.02% 0.212 278.3)
XYZxyz(23.5959, 15.9694, 81.1796)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BEC #E8EC5B
analogous
#5BA0EC #5F5BEC #A85BEC
triadic
#5F5BEC #EC5F5B #5BEC5F
tetradic
#5F5BEC #EC5BA0 #E8EC5B #5BECA8
square
#5F5BEC #EC5BA0 #E8EC5B #5BECA8
split-complementary
#5F5BEC #ECA85B #A0EC5B
monochromatic
#1A15B7 #2924E6 #5F5BEC #9592F2 #CAC9F9

Accessibility & contrast

On white

5.01
#5F5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5F5BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BEC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BEC#FFFFFF#000000##FFFFFF
##5F5BEC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5bec;
/* rgb */ color: rgb(95, 91, 236);
/* oklch */ color: oklch(56.0% 0.212 278.3);
Tailwind
colors: {
  custom: {
    50: '#9a8af3',
    500: '#5f5bec',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bec;
$custom-light: #9a8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bec",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 241.655,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.21182,
    "h": 278.3
  },
  "luminance": 0.15971
}

Semantic roles & 50–950 ramp

primary
#5F5BEC
secondary
#E9EBB8
accent
#DC0AD6
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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