#5F5DEC#5F5DEC

#5F5DEC is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.4% C 0.209 H 277.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5F5DEC
RGBrgb(95, 93, 236)
HSLhsl(241, 79%, 65%)
HSVhsv(241, 61%, 93%)
CMYKcmyk(59.7%, 60.6%, 0%, 7.5%)
CIE-LABlab(47.39, 41.80, -72.11)
CIE-LCHlch(47.39, 83.35, 300.10°)
OKLaboklab(56.35% 0.0288 -0.2074)
OKLCHoklch(56.35% 0.209 277.9)
XYZxyz(23.7691, 16.3159, 81.2374)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DEC #EAEC5D
analogous
#5DA3EC #5F5DEC #A75DEC
triadic
#5F5DEC #EC5F5D #5DEC5F
tetradic
#5F5DEC #EC5DA3 #EAEC5D #5DECA7
square
#5F5DEC #EC5DA3 #EAEC5D #5DECA7
split-complementary
#5F5DEC #ECA75D #A3EC5D
monochromatic
#1816B9 #2926E6 #5F5DEC #9594F2 #CBCBF9

Accessibility & contrast

On white

4.93
#5F5DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5F5DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DEC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DEC#FFFFFF#000000##FFFFFF
##5F5DEC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5dec;
/* rgb */ color: rgb(95, 93, 236);
/* oklch */ color: oklch(56.4% 0.209 277.9);
Tailwind
colors: {
  custom: {
    50: '#9a8bf3',
    500: '#5f5dec',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dec;
$custom-light: #9a8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dec",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 240.839,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56352,
    "c": 0.20942,
    "h": 277.9
  },
  "luminance": 0.16318
}

Semantic roles & 50–950 ramp

primary
#5F5DEC
secondary
#EAEBBA
accent
#DB0AD8
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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