#5F5EF5#5F5EF5

#5F5EF5 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.220 H 277.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5F5EF5
RGBrgb(95, 94, 245)
HSLhsl(240, 88%, 66%)
HSVhsv(240, 62%, 96%)
CMYKcmyk(61.2%, 61.6%, 0%, 3.9%)
CIE-LABlab(48.30, 44.06, -75.67)
CIE-LCHlch(48.30, 87.57, 300.21°)
OKLaboklab(57.23% 0.0275 -0.2179)
OKLCHoklch(57.23% 0.22 277.2)
XYZxyz(25.1981, 17.0289, 88.3275)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EF5 #F4F55E
analogous
#5EA9F5 #5F5EF5 #AB5EF5
triadic
#5F5EF5 #F55F5E #5EF55F
tetradic
#5F5EF5 #F55EA9 #F4F55E #5EF5AB
square
#5F5EF5 #F55EA9 #F4F55E #5EF5AB
split-complementary
#5F5EF5 #F5AB5E #A9F55E
monochromatic
#0E0DCC #2624F1 #5F5EF5 #9898F9 #D2D1FC

Accessibility & contrast

On white

4.77
#5F5EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#5F5EF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EF5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EF5#FFFFFF#000000##FFFFFF
##5F5EF51.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FA
Deuteranopia (green-blind)
#006CF2
Tritanopia (blue-blind)
#0084A1
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f5ef5;
/* rgb */ color: rgb(95, 94, 245);
/* oklch */ color: oklch(57.2% 0.220 277.2);
Tailwind
colors: {
  custom: {
    50: '#9b8cfa',
    500: '#5f5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ef5;
$custom-light: #9b8cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ef5",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 240.397,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.57234,
    "c": 0.21961,
    "h": 277.2
  },
  "luminance": 0.17031
}

Semantic roles & 50–950 ramp

primary
#5F5EF5
secondary
#F0F0BF
accent
#E501E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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