#5F5CE8#5F5CE8

#5F5CE8 is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 55.9% C 0.206 H 278.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5F5CE8
RGBrgb(95, 92, 232)
HSLhsl(241, 75%, 64%)
HSVhsv(241, 60%, 91%)
CMYKcmyk(59.1%, 60.3%, 0%, 9%)
CIE-LABlab(46.86, 41.12, -70.72)
CIE-LCHlch(46.86, 81.80, 300.18°)
OKLaboklab(55.87% 0.0299 -0.2033)
OKLCHoklch(55.87% 0.206 278.4)
XYZxyz(23.1073, 15.9117, 78.1819)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE8 #E5E85C
analogous
#5C9FE8 #5F5CE8 #A55CE8
triadic
#5F5CE8 #E85F5C #5CE85F
tetradic
#5F5CE8 #E85C9F #E5E85C #5CE8A5
square
#5F5CE8 #E85C9F #E5E85C #5CE8A5
split-complementary
#5F5CE8 #E8A55C #9FE85C
monochromatic
#1C19B1 #2A26E0 #5F5CE8 #9492F0 #C8C7F7

Accessibility & contrast

On white

5.02
#5F5CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5F5CE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE8#FFFFFF#000000##FFFFFF
##5F5CE81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#0069E5
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5ce8;
/* rgb */ color: rgb(95, 92, 232);
/* oklch */ color: oklch(55.9% 0.206 278.4);
Tailwind
colors: {
  custom: {
    50: '#998af0',
    500: '#5f5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce8;
$custom-light: #998af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce8",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 241.286,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.5587,
    "c": 0.20553,
    "h": 278.4
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

primary
#5F5CE8
secondary
#E8E9B7
accent
#D70ED3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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