#5F5DE9#5F5DE9

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

Color values

HEX#5F5DE9
RGBrgb(95, 93, 233)
HSLhsl(241, 76%, 64%)
HSVhsv(241, 60%, 91%)
CMYKcmyk(59.2%, 60.1%, 0%, 8.6%)
CIE-LABlab(47.16, 40.84, -70.79)
CIE-LCHlch(47.16, 81.72, 299.98°)
OKLaboklab(56.12% 0.029 -0.2035)
OKLCHoklch(56.12% 0.206 278.1)
XYZxyz(23.3369, 16.1431, 78.9611)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DE9 #E7E95D
analogous
#5DA1E9 #5F5DE9 #A55DE9
triadic
#5F5DE9 #E95F5D #5DE95F
tetradic
#5F5DE9 #E95DA1 #E7E95D #5DE9A5
square
#5F5DE9 #E95DA1 #E7E95D #5DE9A5
split-complementary
#5F5DE9 #E9A55D #A1E95D
monochromatic
#1B18B3 #2A27E2 #5F5DE9 #9493F0 #C9C9F8

Accessibility & contrast

On white

4.97
#5F5DE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F5DE9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DE9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DE9#FFFFFF#000000##FFFFFF
##5F5DE91.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EE
Deuteranopia (green-blind)
#006AE6
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5de9;
/* rgb */ color: rgb(95, 93, 233);
/* oklch */ color: oklch(56.1% 0.206 278.1);
Tailwind
colors: {
  custom: {
    50: '#998bf1',
    500: '#5f5de9',
    950: '#000000',
  },
}
SCSS
$custom: #5f5de9;
$custom-light: #998bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5de9",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 233
  },
  "hsl": {
    "h": 240.857,
    "s": 76.087,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56117,
    "c": 0.20559,
    "h": 278.1
  },
  "luminance": 0.16145
}

Semantic roles & 50–950 ramp

primary
#5F5DE9
secondary
#E9E9B8
accent
#D80DD5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5DE9

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

Preview Lab → · Contrast checker → · Palette generator →

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