#5F5CE5#5F5CE5

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

Color values

HEX#5F5CE5
RGBrgb(95, 92, 229)
HSLhsl(241, 72%, 63%)
HSVhsv(241, 60%, 90%)
CMYKcmyk(58.5%, 59.8%, 0%, 10.2%)
CIE-LABlab(46.64, 40.17, -69.39)
CIE-LCHlch(46.64, 80.17, 300.07°)
OKLaboklab(55.64% 0.03 -0.1994)
OKLCHoklch(55.64% 0.202 278.6)
XYZxyz(22.6848, 15.7427, 75.9568)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE5 #E2E55C
analogous
#5C9DE5 #5F5CE5 #A35CE5
triadic
#5F5CE5 #E55F5C #5CE55F
tetradic
#5F5CE5 #E55C9D #E2E55C #5CE5A3
square
#5F5CE5 #E55C9D #E2E55C #5CE5A3
split-complementary
#5F5CE5 #E5A35C #9DE55C
monochromatic
#1E1BAB #2B27DD #5F5CE5 #9391ED #C7C6F6

Accessibility & contrast

On white

5.06
#5F5CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5F5CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE5#FFFFFF#000000##FFFFFF
##5F5CE51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0069E2
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5ce5;
/* rgb */ color: rgb(95, 92, 229);
/* oklch */ color: oklch(55.6% 0.202 278.6);
Tailwind
colors: {
  custom: {
    50: '#988aee',
    500: '#5f5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce5;
$custom-light: #988aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce5",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 241.314,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55636,
    "c": 0.20168,
    "h": 278.6
  },
  "luminance": 0.15744
}

Semantic roles & 50–950 ramp

primary
#5F5CE5
secondary
#E6E7B6
accent
#D511D0
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #5F5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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