#5F54ED#5F54ED

#5F54ED is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.0% C 0.221 H 279.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5F54ED
RGBrgb(95, 84, 237)
HSLhsl(244, 81%, 63%)
HSVhsv(244, 65%, 93%)
CMYKcmyk(59.9%, 64.6%, 0%, 7.1%)
CIE-LABlab(45.48, 47.36, -75.79)
CIE-LCHlch(45.48, 89.36, 302.00°)
OKLaboklab(54.98% 0.0363 -0.2183)
OKLCHoklch(54.98% 0.221 279.5)
XYZxyz(23.1708, 14.8863, 81.7567)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54ED #E2ED54
analogous
#5495ED #5F54ED #AC54ED
triadic
#5F54ED #ED5F54 #54ED5F
tetradic
#5F54ED #ED5495 #E2ED54 #54EDAC
square
#5F54ED #ED5495 #E2ED54 #54EDAC
split-complementary
#5F54ED #EDAC54 #95ED54
monochromatic
#1E13B4 #2B1DE7 #5F54ED #938BF3 #C7C3F9

Accessibility & contrast

On white

5.28
#5F54ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5F54ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54ED
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54ED#FFFFFF#000000##FFFFFF
##5F54ED1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F2
Deuteranopia (green-blind)
#0066EA
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f54ed;
/* rgb */ color: rgb(95, 84, 237);
/* oklch */ color: oklch(55.0% 0.221 279.5);
Tailwind
colors: {
  custom: {
    50: '#9a85f4',
    500: '#5f54ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ed;
$custom-light: #9a85f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ed",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 244.314,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54983,
    "c": 0.22126,
    "h": 279.5
  },
  "luminance": 0.14888
}

Semantic roles & 50–950 ramp

primary
#5F54ED
secondary
#E6EAB3
accent
#DD08CE
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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