#5D51CA#5D51CA

#5D51CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.181 H 282.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5D51CA
RGBrgb(93, 81, 202)
HSLhsl(246, 53%, 55%)
HSVhsv(246, 60%, 79%)
CMYKcmyk(54%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.96, 37.90, -61.56)
CIE-LCHlch(41.96, 72.29, 301.62°)
OKLaboklab(51.53% 0.0391 -0.1765)
OKLCHoklch(51.53% 0.181 282.5)
XYZxyz(18.1140, 12.4752, 57.3191)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51CA #BECA51
analogous
#5182CA #5D51CA #9951CA
triadic
#5D51CA #CA5D51 #51CA5D
tetradic
#5D51CA #CA5182 #BECA51 #51CA99
square
#5D51CA #CA5182 #BECA51 #51CA99
split-complementary
#5D51CA #CA9951 #82CA51
monochromatic
#2E257B #4034AA #5D51CA #8980D8 #B4AFE7

Accessibility & contrast

On white

6.01
#5D51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5D51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51CA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51CA#FFFFFF#000000##FFFFFF
##5D51CA1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#2C6E86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5d51ca;
/* rgb */ color: rgb(93, 81, 202);
/* oklch */ color: oklch(51.5% 0.181 282.5);
Tailwind
colors: {
  custom: {
    50: '#9482db',
    500: '#5d51ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d51ca;
$custom-light: #9482db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51ca",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 245.95,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51534,
    "c": 0.1808,
    "h": 282.5
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

primary
#5D51CA
secondary
#D0D5A2
accent
#DD4BCE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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