#5645C2#5645C2

#5645C2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.4% C 0.187 H 283.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5645C2
RGBrgb(86, 69, 194)
HSLhsl(248, 51%, 52%)
HSVhsv(248, 64%, 76%)
CMYKcmyk(55.7%, 64.4%, 0%, 23.9%)
CIE-LABlab(38.07, 41.27, -63.26)
CIE-LCHlch(38.07, 75.53, 303.12°)
OKLaboklab(48.36% 0.0423 -0.1818)
OKLCHoklch(48.36% 0.187 283.1)
XYZxyz(15.7005, 10.1288, 52.1562)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645C2 #B1C245
analogous
#4573C2 #5645C2 #9545C2
triadic
#5645C2 #C25645 #45C256
tetradic
#5645C2 #C24573 #B1C245 #45C295
square
#5645C2 #C24573 #B1C245 #45C295
split-complementary
#5645C2 #C29545 #73C245
monochromatic
#2C236A #403298 #5645C2 #8073D1 #AAA1E0

Accessibility & contrast

On white

6.94
#5645C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5645C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645C2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645C2#FFFFFF#000000##FFFFFF
##5645C21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#22647D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5645c2;
/* rgb */ color: rgb(86, 69, 194);
/* oklch */ color: oklch(48.4% 0.187 283.1);
Tailwind
colors: {
  custom: {
    50: '#907ad5',
    500: '#5645c2',
    950: '#000000',
  },
}
SCSS
$custom: #5645c2;
$custom-light: #907ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5645c2",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 248.16,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48357,
    "c": 0.18663,
    "h": 283.1
  },
  "luminance": 0.1013
}

Semantic roles & 50–950 ramp

primary
#5645C2
secondary
#C5CD96
accent
#DA4EC7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5645C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5645C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva