#5F5CE6#5F5CE6

#5F5CE6 is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.7% C 0.203 H 278.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5F5CE6
RGBrgb(95, 92, 230)
HSLhsl(241, 73%, 63%)
HSVhsv(241, 60%, 90%)
CMYKcmyk(58.7%, 60%, 0%, 9.8%)
CIE-LABlab(46.71, 40.49, -69.83)
CIE-LCHlch(46.71, 80.72, 300.10°)
OKLaboklab(55.71% 0.03 -0.2007)
OKLCHoklch(55.71% 0.203 278.5)
XYZxyz(22.8248, 15.7987, 76.6942)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE6 #E3E65C
analogous
#5C9EE6 #5F5CE6 #A45CE6
triadic
#5F5CE6 #E65F5C #5CE65F
tetradic
#5F5CE6 #E65C9E #E3E65C #5CE6A4
square
#5F5CE6 #E65C9E #E3E65C #5CE6A4
split-complementary
#5F5CE6 #E6A45C #9EE65C
monochromatic
#1E1BAD #2B27DE #5F5CE6 #9391EE #C7C6F6

Accessibility & contrast

On white

5.05
#5F5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5F5CE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE6#FFFFFF#000000##FFFFFF
##5F5CE61.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#0069E3
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5ce6;
/* rgb */ color: rgb(95, 92, 230);
/* oklch */ color: oklch(55.7% 0.203 278.5);
Tailwind
colors: {
  custom: {
    50: '#998aef',
    500: '#5f5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce6;
$custom-light: #998aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce6",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 241.304,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55714,
    "c": 0.20296,
    "h": 278.5
  },
  "luminance": 0.158
}

Semantic roles & 50–950 ramp

primary
#5F5CE6
secondary
#E7E8B6
accent
#D610D1
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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