#5F5BE7#5F5BE7

#5F5BE7 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.6% C 0.205 H 278.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F5BE7
RGBrgb(95, 91, 231)
HSLhsl(242, 74%, 63%)
HSVhsv(242, 61%, 91%)
CMYKcmyk(58.9%, 60.6%, 0%, 9.4%)
CIE-LABlab(46.56, 41.40, -70.64)
CIE-LCHlch(46.56, 81.88, 300.37°)
OKLaboklab(55.62% 0.0308 -0.2031)
OKLCHoklch(55.62% 0.205 278.6)
XYZxyz(22.8796, 15.6829, 77.4073)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BE7 #E3E75B
analogous
#5B9DE7 #5F5BE7 #A55BE7
triadic
#5F5BE7 #E75F5B #5BE75F
tetradic
#5F5BE7 #E75B9D #E3E75B #5BE7A5
square
#5F5BE7 #E75B9D #E3E75B #5BE7A5
split-complementary
#5F5BE7 #E7A55B #9DE75B
monochromatic
#1E19AE #2B26DF #5F5BE7 #9390EF #C7C6F7

Accessibility & contrast

On white

5.08
#5F5BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F5BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BE7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BE7#FFFFFF#000000##FFFFFF
##5F5BE71.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0069E4
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5be7;
/* rgb */ color: rgb(95, 91, 231);
/* oklch */ color: oklch(55.6% 0.205 278.6);
Tailwind
colors: {
  custom: {
    50: '#998af0',
    500: '#5f5be7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5be7;
$custom-light: #998af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5be7",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 241.714,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55624,
    "c": 0.20546,
    "h": 278.6
  },
  "luminance": 0.15685
}

Semantic roles & 50–950 ramp

primary
#5F5BE7
secondary
#E7E8B6
accent
#D70FD1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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