#5F5AEF#5F5AEF

#5F5AEF is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.1% C 0.217 H 278.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5F5AEF
RGBrgb(95, 90, 239)
HSLhsl(242, 82%, 65%)
HSVhsv(242, 62%, 94%)
CMYKcmyk(60.3%, 62.3%, 0%, 6.3%)
CIE-LABlab(46.94, 44.51, -74.52)
CIE-LCHlch(46.94, 86.80, 300.85°)
OKLaboklab(56.1% 0.0312 -0.2145)
OKLCHoklch(56.1% 0.217 278.3)
XYZxyz(23.9505, 15.9754, 83.4661)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AEF #EAEF5A
analogous
#5AA0EF #5F5AEF #A95AEF
triadic
#5F5AEF #EF5F5A #5AEF5F
tetradic
#5F5AEF #EF5AA0 #EAEF5A #5AEFA9
square
#5F5AEF #EF5AA0 #EAEF5A #5AEFA9
split-complementary
#5F5AEF #EFA95A #A0EF5A
monochromatic
#1812BC #2922EA #5F5AEF #9592F4 #CBCAFA

Accessibility & contrast

On white

5.01
#5F5AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5F5AEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AEF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AEF#FFFFFF#000000##FFFFFF
##5F5AEF1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5aef;
/* rgb */ color: rgb(95, 90, 239);
/* oklch */ color: oklch(56.1% 0.217 278.3);
Tailwind
colors: {
  custom: {
    50: '#9a89f5',
    500: '#5f5aef',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aef;
$custom-light: #9a89f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aef",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 242.013,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56098,
    "c": 0.21678,
    "h": 278.3
  },
  "luminance": 0.15977
}

Semantic roles & 50–950 ramp

primary
#5F5AEF
secondary
#EAECB9
accent
#DF07D7
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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