#5F54EC#5F54EC

#5F54EC is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.220 H 279.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5F54EC
RGBrgb(95, 84, 236)
HSLhsl(244, 80%, 63%)
HSVhsv(244, 64%, 93%)
CMYKcmyk(59.7%, 64.4%, 0%, 7.5%)
CIE-LABlab(45.40, 47.05, -75.35)
CIE-LCHlch(45.40, 88.83, 301.98°)
OKLaboklab(54.9% 0.0364 -0.217)
OKLCHoklch(54.9% 0.22 279.5)
XYZxyz(23.0252, 14.8280, 80.9894)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54EC #E1EC54
analogous
#5495EC #5F54EC #AB54EC
triadic
#5F54EC #EC5F54 #54EC5F
tetradic
#5F54EC #EC5495 #E1EC54 #54ECAB
square
#5F54EC #EC5495 #E1EC54 #54ECAB
split-complementary
#5F54EC #ECAB54 #95EC54
monochromatic
#1F14B2 #2B1DE6 #5F54EC #938BF2 #C6C2F8

Accessibility & contrast

On white

5.30
#5F54EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5F54EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54EC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54EC#FFFFFF#000000##FFFFFF
##5F54EC1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0065E9
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f54ec;
/* rgb */ color: rgb(95, 84, 236);
/* oklch */ color: oklch(54.9% 0.220 279.5);
Tailwind
colors: {
  custom: {
    50: '#9a85f3',
    500: '#5f54ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ec;
$custom-light: #9a85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ec",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 244.342,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.549,
    "c": 0.22003,
    "h": 279.5
  },
  "luminance": 0.1483
}

Semantic roles & 50–950 ramp

primary
#5F54EC
secondary
#E5E9B2
accent
#DC09CD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54EC

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

Preview Lab → · Contrast checker → · Palette generator →

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