#5F5AEE#5F5AEE

#5F5AEE is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 56.0% C 0.216 H 278.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F5AEE
RGBrgb(95, 90, 238)
HSLhsl(242, 81%, 64%)
HSVhsv(242, 62%, 93%)
CMYKcmyk(60.1%, 62.2%, 0%, 6.7%)
CIE-LABlab(46.86, 44.19, -74.08)
CIE-LCHlch(46.86, 86.26, 300.82°)
OKLaboklab(56.02% 0.0313 -0.2132)
OKLCHoklch(56.02% 0.216 278.3)
XYZxyz(23.8032, 15.9165, 82.6902)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AEE #E9EE5A
analogous
#5A9FEE #5F5AEE #A95AEE
triadic
#5F5AEE #EE5F5A #5AEE5F
tetradic
#5F5AEE #EE5A9F #E9EE5A #5AEEA9
square
#5F5AEE #EE5A9F #E9EE5A #5AEEA9
split-complementary
#5F5AEE #EEA95A #9FEE5A
monochromatic
#1913BA #2923E8 #5F5AEE #9591F4 #CBC9F9

Accessibility & contrast

On white

5.02
#5F5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5F5AEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AEE
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AEE#FFFFFF#000000##FFFFFF
##5F5AEE1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#0069EB
Tritanopia (blue-blind)
#007F9C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5aee;
/* rgb */ color: rgb(95, 90, 238);
/* oklch */ color: oklch(56.0% 0.216 278.3);
Tailwind
colors: {
  custom: {
    50: '#9a89f5',
    500: '#5f5aee',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aee;
$custom-light: #9a89f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aee",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 242.027,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56017,
    "c": 0.21552,
    "h": 278.3
  },
  "luminance": 0.15918
}

Semantic roles & 50–950 ramp

primary
#5F5AEE
secondary
#EAECB8
accent
#DE08D6
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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