#5F5CEB#5F5CEB

#5F5CEB is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.1% C 0.209 H 278.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5F5CEB
RGBrgb(95, 92, 235)
HSLhsl(241, 78%, 64%)
HSVhsv(241, 61%, 92%)
CMYKcmyk(59.6%, 60.9%, 0%, 7.8%)
CIE-LABlab(47.08, 42.07, -72.04)
CIE-LCHlch(47.08, 83.42, 300.28°)
OKLaboklab(56.11% 0.0298 -0.2072)
OKLCHoklch(56.11% 0.209 278.2)
XYZxyz(23.5371, 16.0836, 80.4453)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CEB #E8EB5C
analogous
#5CA1EB #5F5CEB #A75CEB
triadic
#5F5CEB #EB5F5C #5CEB5F
tetradic
#5F5CEB #EB5CA1 #E8EB5C #5CEBA7
square
#5F5CEB #EB5CA1 #E8EB5C #5CEBA7
split-complementary
#5F5CEB #EBA75C #A1EB5C
monochromatic
#1A16B6 #2925E4 #5F5CEB #9593F2 #CAC9F8

Accessibility & contrast

On white

4.98
#5F5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5F5CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CEB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CEB#FFFFFF#000000##FFFFFF
##5F5CEB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5ceb;
/* rgb */ color: rgb(95, 92, 235);
/* oklch */ color: oklch(56.1% 0.209 278.2);
Tailwind
colors: {
  custom: {
    50: '#998af2',
    500: '#5f5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ceb;
$custom-light: #998af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ceb",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 241.259,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.56106,
    "c": 0.20935,
    "h": 278.2
  },
  "luminance": 0.16085
}

Semantic roles & 50–950 ramp

primary
#5F5CEB
secondary
#E9EAB8
accent
#DA0BD6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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