#5F5CE4#5F5CE4

#5F5CE4 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.6% C 0.200 H 278.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F5CE4
RGBrgb(95, 92, 228)
HSLhsl(241, 72%, 63%)
HSVhsv(241, 60%, 89%)
CMYKcmyk(58.3%, 59.6%, 0%, 10.6%)
CIE-LABlab(46.56, 39.85, -68.94)
CIE-LCHlch(46.56, 79.63, 300.03°)
OKLaboklab(55.56% 0.0301 -0.1981)
OKLCHoklch(55.56% 0.2 278.6)
XYZxyz(22.5456, 15.6870, 75.2236)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE4 #E1E45C
analogous
#5C9DE4 #5F5CE4 #A35CE4
triadic
#5F5CE4 #E45F5C #5CE45F
tetradic
#5F5CE4 #E45C9D #E1E45C #5CE4A3
square
#5F5CE4 #E45C9D #E1E45C #5CE4A3
split-complementary
#5F5CE4 #E4A35C #9DE45C
monochromatic
#1F1CAA #2B27DB #5F5CE4 #9391ED #C6C5F5

Accessibility & contrast

On white

5.08
#5F5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F5CE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE4#FFFFFF#000000##FFFFFF
##5F5CE41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5ce4;
/* rgb */ color: rgb(95, 92, 228);
/* oklch */ color: oklch(55.6% 0.200 278.6);
Tailwind
colors: {
  custom: {
    50: '#988aed',
    500: '#5f5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce4;
$custom-light: #988aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce4",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 241.324,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55558,
    "c": 0.20039,
    "h": 278.6
  },
  "luminance": 0.15689
}

Semantic roles & 50–950 ramp

primary
#5F5CE4
secondary
#E5E7B5
accent
#D412CF
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #5F5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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