#5F5FEF#5F5FEF

#5F5FEF is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.9% C 0.211 H 277.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5F5FEF
RGBrgb(95, 95, 239)
HSLhsl(240, 82%, 65%)
HSVhsv(240, 60%, 94%)
CMYKcmyk(60.3%, 60.3%, 0%, 6.3%)
CIE-LABlab(48.07, 41.57, -72.69)
CIE-LCHlch(48.07, 83.73, 299.76°)
OKLaboklab(56.92% 0.027 -0.2091)
OKLCHoklch(56.92% 0.211 277.3)
XYZxyz(24.3865, 16.8474, 83.6114)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FEF #EFEF5F
analogous
#5FA7EF #5F5FEF #A75FEF
triadic
#5F5FEF #EF5F5F #5FEF5F
tetradic
#5F5FEF #EF5FA7 #EFEF5F #5FEFA7
square
#5F5FEF #EF5FA7 #EFEF5F #5FEFA7
split-complementary
#5F5FEF #EFA75F #A7EF5F
monochromatic
#1313C0 #2727E9 #5F5FEF #9797F5 #CECEFA

Accessibility & contrast

On white

4.81
#5F5FEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5F5FEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FEF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FEF#FFFFFF#000000##FFFFFF
##5F5FEF1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#00829E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5fef;
/* rgb */ color: rgb(95, 95, 239);
/* oklch */ color: oklch(56.9% 0.211 277.3);
Tailwind
colors: {
  custom: {
    50: '#9a8df5',
    500: '#5f5fef',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fef;
$custom-light: #9a8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fef",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 240,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.21084,
    "h": 277.3
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#5F5FEF
secondary
#EDEDBD
accent
#DE07DE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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