#5F5AEB#5F5AEB

#5F5AEB is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.8% C 0.212 H 278.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5F5AEB
RGBrgb(95, 90, 235)
HSLhsl(242, 78%, 64%)
HSVhsv(242, 62%, 92%)
CMYKcmyk(59.6%, 61.7%, 0%, 7.8%)
CIE-LABlab(46.63, 43.25, -72.77)
CIE-LCHlch(46.63, 84.65, 300.72°)
OKLaboklab(55.78% 0.0315 -0.2094)
OKLCHoklch(55.78% 0.212 278.5)
XYZxyz(23.3661, 15.7417, 80.3883)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AEB #E6EB5A
analogous
#5A9DEB #5F5AEB #A75AEB
triadic
#5F5AEB #EB5F5A #5AEB5F
tetradic
#5F5AEB #EB5A9D #E6EB5A #5AEBA7
square
#5F5AEB #EB5A9D #E6EB5A #5AEBA7
split-complementary
#5F5AEB #EBA75A #9DEB5A
monochromatic
#1B16B5 #2A23E4 #5F5AEB #9491F2 #C9C7F8

Accessibility & contrast

On white

5.06
#5F5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5F5AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AEB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AEB#FFFFFF#000000##FFFFFF
##5F5AEB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#007E9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5aeb;
/* rgb */ color: rgb(95, 90, 235);
/* oklch */ color: oklch(55.8% 0.212 278.5);
Tailwind
colors: {
  custom: {
    50: '#9a89f2',
    500: '#5f5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aeb;
$custom-light: #9a89f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aeb",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 242.069,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55776,
    "c": 0.21174,
    "h": 278.5
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#5F5AEB
secondary
#E8EAB7
accent
#DB0BD3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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