#5F54EF#5F54EF

#5F54EF is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.1% C 0.224 H 279.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F54EF
RGBrgb(95, 84, 239)
HSLhsl(244, 83%, 63%)
HSVhsv(244, 65%, 94%)
CMYKcmyk(60.3%, 64.9%, 0%, 6.3%)
CIE-LABlab(45.64, 47.98, -76.65)
CIE-LCHlch(45.64, 90.42, 302.04°)
OKLaboklab(55.15% 0.0361 -0.2208)
OKLCHoklch(55.15% 0.224 279.3)
XYZxyz(23.4647, 15.0038, 83.3041)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54EF #E4EF54
analogous
#5496EF #5F54EF #AC54EF
triadic
#5F54EF #EF5F54 #54EF5F
tetradic
#5F54EF #EF5496 #E4EF54 #54EFAC
square
#5F54EF #EF5496 #E4EF54 #54EFAC
split-complementary
#5F54EF #EFAC54 #96EF54
monochromatic
#1D11B7 #2B1CEA #5F54EF #938CF4 #C8C4F9

Accessibility & contrast

On white

5.25
#5F54EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5F54EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54EF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54EF#FFFFFF#000000##FFFFFF
##5F54EF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0066EC
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f54ef;
/* rgb */ color: rgb(95, 84, 239);
/* oklch */ color: oklch(55.1% 0.224 279.3);
Tailwind
colors: {
  custom: {
    50: '#9b85f5',
    500: '#5f54ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ef;
$custom-light: #9b85f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ef",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 244.258,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5515,
    "c": 0.22372,
    "h": 279.3
  },
  "luminance": 0.15006
}

Semantic roles & 50–950 ramp

primary
#5F54EF
secondary
#E7EBB4
accent
#DF06D0
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54EF

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

Preview Lab → · Contrast checker → · Palette generator →

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