#5851CA#5851CA

#5851CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.182 H 280.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5851CA
RGBrgb(88, 81, 202)
HSLhsl(243, 53%, 55%)
HSVhsv(243, 60%, 79%)
CMYKcmyk(56.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.57, 36.98, -62.21)
CIE-LCHlch(41.57, 72.37, 300.73°)
OKLaboklab(51.15% 0.0328 -0.1786)
OKLCHoklch(51.15% 0.182 280.4)
XYZxyz(17.6243, 12.2227, 57.2962)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851CA #C3CA51
analogous
#5186CA #5851CA #9451CA
triadic
#5851CA #CA5851 #51CA58
tetradic
#5851CA #CA5186 #C3CA51 #51CA94
square
#5851CA #CA5186 #C3CA51 #51CA94
split-complementary
#5851CA #CA9451 #86CA51
monochromatic
#2A257B #3B34AA #5851CA #8580D8 #B2AFE7

Accessibility & contrast

On white

6.10
#5851CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5851CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851CA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851CA#FFFFFF#000000##FFFFFF
##5851CA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#1A6E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5851ca;
/* rgb */ color: rgb(88, 81, 202);
/* oklch */ color: oklch(51.1% 0.182 280.4);
Tailwind
colors: {
  custom: {
    50: '#9182db',
    500: '#5851ca',
    950: '#000000',
  },
}
SCSS
$custom: #5851ca;
$custom-light: #9182db;
$custom-dark: #000000;
JSON
{
  "hex": "#5851ca",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 243.471,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.18159,
    "h": 280.4
  },
  "luminance": 0.12224
}

Semantic roles & 50–950 ramp

primary
#5851CA
secondary
#D2D5A2
accent
#DD4BD4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5851CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva