#5F5AE5#5F5AE5

#5F5AE5 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.3% C 0.204 H 279.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F5AE5
RGBrgb(95, 90, 229)
HSLhsl(242, 73%, 63%)
HSVhsv(242, 61%, 90%)
CMYKcmyk(58.5%, 60.7%, 0%, 10.2%)
CIE-LABlab(46.18, 41.36, -70.13)
CIE-LCHlch(46.18, 81.42, 300.53°)
OKLaboklab(55.3% 0.0318 -0.2016)
OKLCHoklch(55.3% 0.204 279)
XYZxyz(22.5138, 15.4008, 75.8998)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AE5 #E0E55A
analogous
#5A9BE5 #5F5AE5 #A45AE5
triadic
#5F5AE5 #E55F5A #5AE55F
tetradic
#5F5AE5 #E55A9B #E0E55A #5AE5A4
square
#5F5AE5 #E55A9B #E0E55A #5AE5A4
split-complementary
#5F5AE5 #E5A45A #9BE55A
monochromatic
#201BAA #2C25DD #5F5AE5 #928FED #C6C4F6

Accessibility & contrast

On white

5.15
#5F5AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5F5AE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AE5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AE5#FFFFFF#000000##FFFFFF
##5F5AE51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EA
Deuteranopia (green-blind)
#0068E2
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f5ae5;
/* rgb */ color: rgb(95, 90, 229);
/* oklch */ color: oklch(55.3% 0.204 279.0);
Tailwind
colors: {
  custom: {
    50: '#9989ee',
    500: '#5f5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ae5;
$custom-light: #9989ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ae5",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 242.158,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.553,
    "c": 0.20412,
    "h": 279
  },
  "luminance": 0.15402
}

Semantic roles & 50–950 ramp

primary
#5F5AE5
secondary
#E5E7B4
accent
#D511CE
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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