#5F5AE7#5F5AE7

#5F5AE7 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.5% C 0.207 H 278.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F5AE7
RGBrgb(95, 90, 231)
HSLhsl(242, 75%, 63%)
HSVhsv(242, 61%, 91%)
CMYKcmyk(58.9%, 61%, 0%, 9.4%)
CIE-LABlab(46.33, 41.99, -71.01)
CIE-LCHlch(46.33, 82.50, 300.59°)
OKLaboklab(55.46% 0.0317 -0.2042)
OKLCHoklch(55.46% 0.207 278.8)
XYZxyz(22.7947, 15.5131, 77.3789)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AE7 #E2E75A
analogous
#5A9BE7 #5F5AE7 #A65AE7
triadic
#5F5AE7 #E75F5A #5AE75F
tetradic
#5F5AE7 #E75A9B #E2E75A #5AE7A6
square
#5F5AE7 #E75A9B #E2E75A #5AE7A6
split-complementary
#5F5AE7 #E7A65A #9BE75A
monochromatic
#1E19AD #2B25DF #5F5AE7 #938FEF #C7C5F7

Accessibility & contrast

On white

5.12
#5F5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5F5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AE7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AE7#FFFFFF#000000##FFFFFF
##5F5AE71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5ae7;
/* rgb */ color: rgb(95, 90, 231);
/* oklch */ color: oklch(55.5% 0.207 278.8);
Tailwind
colors: {
  custom: {
    50: '#9989f0',
    500: '#5f5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ae7;
$custom-light: #9989f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ae7",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 242.128,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55458,
    "c": 0.20667,
    "h": 278.8
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#5F5AE7
secondary
#E6E8B5
accent
#D70FD0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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