#5645EC#5645EC

#5645EC is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.238 H 278.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5645EC
RGBrgb(86, 69, 236)
HSLhsl(246, 81%, 60%)
HSVhsv(246, 71%, 93%)
CMYKcmyk(63.6%, 70.8%, 0%, 7.5%)
CIE-LABlab(41.67, 54.17, -81.49)
CIE-LCHlch(41.67, 97.85, 303.62°)
OKLaboklab(52.05% 0.0362 -0.2352)
OKLCHoklch(52.05% 0.238 278.7)
XYZxyz(21.1013, 12.2891, 80.6007)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645EC #DBEC45
analogous
#4587EC #5645EC #AA45EC
triadic
#5645EC #EC5645 #45EC56
tetradic
#5645EC #EC4587 #DBEC45 #45ECAA
square
#5645EC #EC4587 #DBEC45 #45ECAA
split-complementary
#5645EC #ECAA45 #87EC45
monochromatic
#2011A6 #2B17DD #5645EC #887DF2 #BBB4F7

Accessibility & contrast

On white

6.07
#5645EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5645EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645EC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645EC#FFFFFF#000000##FFFFFF
##5645EC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F1
Deuteranopia (green-blind)
#005CE9
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5645ec;
/* rgb */ color: rgb(86, 69, 236);
/* oklch */ color: oklch(52.0% 0.238 278.7);
Tailwind
colors: {
  custom: {
    50: '#977bf3',
    500: '#5645ec',
    950: '#000000',
  },
}
SCSS
$custom: #5645ec;
$custom-light: #977bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5645ec",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 236
  },
  "hsl": {
    "h": 246.108,
    "s": 81.463,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5205,
    "c": 0.23795,
    "h": 278.7
  },
  "luminance": 0.12291
}

Semantic roles & 50–950 ramp

primary
#5645EC
secondary
#E0E7A6
accent
#F830E3
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5645EC

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

Preview Lab → · Contrast checker → · Palette generator →

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