#5A51CF#5A51CF

#5A51CF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.188 H 280.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5A51CF
RGBrgb(90, 81, 207)
HSLhsl(244, 57%, 56%)
HSVhsv(244, 61%, 81%)
CMYKcmyk(56.5%, 60.9%, 0%, 18.8%)
CIE-LABlab(42.10, 38.92, -64.23)
CIE-LCHlch(42.10, 75.11, 301.21°)
OKLaboklab(51.69% 0.0351 -0.1845)
OKLCHoklch(51.69% 0.188 280.8)
XYZxyz(18.4178, 12.5623, 60.4736)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51CF #C6CF51
analogous
#5187CF #5A51CF #9951CF
triadic
#5A51CF #CF5A51 #51CF5A
tetradic
#5A51CF #CF5187 #C6CF51 #51CF99
square
#5A51CF #CF5187 #C6CF51 #51CF99
split-complementary
#5A51CF #CF9951 #87CF51
monochromatic
#2B2482 #3A31B2 #5A51CF #8781DC #B5B1E9

Accessibility & contrast

On white

5.98
#5A51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5A51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51CF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51CF#FFFFFF#000000##FFFFFF
##5A51CF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#1A7088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a51cf;
/* rgb */ color: rgb(90, 81, 207);
/* oklch */ color: oklch(51.7% 0.188 280.8);
Tailwind
colors: {
  custom: {
    50: '#9382df',
    500: '#5a51cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a51cf;
$custom-light: #9382df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51cf",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 244.286,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51691,
    "c": 0.18779,
    "h": 280.8
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#5A51CF
secondary
#D4D8A4
accent
#E048D5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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