#5F54CA#5F54CA

#5F54CA is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.2% C 0.177 H 282.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5F54CA
RGBrgb(95, 84, 202)
HSLhsl(246, 53%, 56%)
HSVhsv(246, 58%, 79%)
CMYKcmyk(53%, 58.4%, 0%, 20.8%)
CIE-LABlab(42.82, 36.48, -60.16)
CIE-LCHlch(42.82, 70.36, 301.24°)
OKLaboklab(52.21% 0.0386 -0.1723)
OKLCHoklch(52.21% 0.177 282.6)
XYZxyz(18.5471, 13.0367, 57.4047)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54CA #BFCA54
analogous
#5484CA #5F54CA #9A54CA
triadic
#5F54CA #CA5F54 #54CA5F
tetradic
#5F54CA #CA5484 #BFCA54 #54CA9A
square
#5F54CA #CA5484 #BFCA54 #54CA9A
split-complementary
#5F54CA #CA9A54 #84CA54
monochromatic
#2F277D #4035AC #5F54CA #8B83D8 #B6B1E7

Accessibility & contrast

On white

5.82
#5F54CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5F54CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54CA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54CA#FFFFFF#000000##FFFFFF
##5F54CA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#317087
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f54ca;
/* rgb */ color: rgb(95, 84, 202);
/* oklch */ color: oklch(52.2% 0.177 282.6);
Tailwind
colors: {
  custom: {
    50: '#9584db',
    500: '#5f54ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ca;
$custom-light: #9584db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ca",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 245.593,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52206,
    "c": 0.1766,
    "h": 282.6
  },
  "luminance": 0.13038
}

Semantic roles & 50–950 ramp

primary
#5F54CA
secondary
#D1D5A5
accent
#DC4CCF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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