#5F54EA#5F54EA

#5F54EA is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.7% C 0.218 H 279.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F54EA
RGBrgb(95, 84, 234)
HSLhsl(244, 78%, 62%)
HSVhsv(244, 64%, 92%)
CMYKcmyk(59.4%, 64.1%, 0%, 8.2%)
CIE-LABlab(45.24, 46.43, -74.49)
CIE-LCHlch(45.24, 87.77, 301.93°)
OKLaboklab(54.73% 0.0366 -0.2144)
OKLCHoklch(54.73% 0.218 279.7)
XYZxyz(22.7362, 14.7124, 79.4676)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54EA #DFEA54
analogous
#5494EA #5F54EA #AA54EA
triadic
#5F54EA #EA5F54 #54EA5F
tetradic
#5F54EA #EA5494 #DFEA54 #54EAAA
square
#5F54EA #EA5494 #DFEA54 #54EAAA
split-complementary
#5F54EA #EAAA54 #94EA54
monochromatic
#2115AE #2C1DE3 #5F54EA #928BF1 #C5C1F7

Accessibility & contrast

On white

5.33
#5F54EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5F54EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54EA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54EA#FFFFFF#000000##FFFFFF
##5F54EA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0065E7
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f54ea;
/* rgb */ color: rgb(95, 84, 234);
/* oklch */ color: oklch(54.7% 0.218 279.7);
Tailwind
colors: {
  custom: {
    50: '#9a85f2',
    500: '#5f54ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ea;
$custom-light: #9a85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ea",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 244.4,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54734,
    "c": 0.21756,
    "h": 279.7
  },
  "luminance": 0.14714
}

Semantic roles & 50–950 ramp

primary
#5F54EA
secondary
#E4E8B2
accent
#DA0BCB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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