#5F5CEC#5F5CEC

#5F5CEC is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.211 H 278.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5F5CEC
RGBrgb(95, 92, 236)
HSLhsl(241, 79%, 64%)
HSVhsv(241, 61%, 93%)
CMYKcmyk(59.7%, 61%, 0%, 7.5%)
CIE-LABlab(47.16, 42.39, -72.48)
CIE-LCHlch(47.16, 83.96, 300.32°)
OKLaboklab(56.19% 0.0297 -0.2085)
OKLCHoklch(56.19% 0.211 278.1)
XYZxyz(23.6819, 16.1415, 81.2083)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CEC #E9EC5C
analogous
#5CA1EC #5F5CEC #A75CEC
triadic
#5F5CEC #EC5F5C #5CEC5F
tetradic
#5F5CEC #EC5CA1 #E9EC5C #5CECA7
square
#5F5CEC #EC5CA1 #E9EC5C #5CECA7
split-complementary
#5F5CEC #ECA75C #A1EC5C
monochromatic
#1915B8 #2925E6 #5F5CEC #9593F2 #CBCAF9

Accessibility & contrast

On white

4.97
#5F5CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F5CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CEC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CEC#FFFFFF#000000##FFFFFF
##5F5CEC1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5cec;
/* rgb */ color: rgb(95, 92, 236);
/* oklch */ color: oklch(56.2% 0.211 278.1);
Tailwind
colors: {
  custom: {
    50: '#9a8af3',
    500: '#5f5cec',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cec;
$custom-light: #9a8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cec",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 241.25,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.21062,
    "h": 278.1
  },
  "luminance": 0.16143
}

Semantic roles & 50–950 ramp

primary
#5F5CEC
secondary
#EAEBB9
accent
#DB0AD7
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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