#5645A2#5645A2

#5645A2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 45.9% C 0.144 H 287.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5645A2
RGBrgb(86, 69, 162)
HSLhsl(251, 40%, 45%)
HSVhsv(251, 57%, 64%)
CMYKcmyk(46.9%, 57.4%, 0%, 36.5%)
CIE-LABlab(35.68, 31.41, -48.19)
CIE-LCHlch(35.68, 57.53, 303.10°)
OKLaboklab(45.85% 0.0439 -0.1375)
OKLCHoklch(45.85% 0.144 287.7)
XYZxyz(12.4856, 8.8428, 35.2244)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645A2 #91A245
analogous
#4562A2 #5645A2 #8545A2
triadic
#5645A2 #A25645 #45A256
tetradic
#5645A2 #A24562 #91A245 #45A285
square
#5645A2 #A24562 #91A245 #45A285
split-complementary
#5645A2 #A28545 #62A245
monochromatic
#28204C #3F3377 #5645A2 #7666BE #9D91D0

Accessibility & contrast

On white

7.59
#5645A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5645A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5645A2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645A2#FFFFFF#000000##FFFFFF
##5645A21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0956A5
Deuteranopia (green-blind)
#0A51A0
Tritanopia (blue-blind)
#3E5A6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5645a2;
/* rgb */ color: rgb(86, 69, 162);
/* oklch */ color: oklch(45.9% 0.144 287.7);
Tailwind
colors: {
  custom: {
    50: '#8b79be',
    500: '#5645a2',
    950: '#000000',
  },
}
SCSS
$custom: #5645a2;
$custom-light: #8b79be;
$custom-dark: #000000;
JSON
{
  "hex": "#5645a2",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 250.968,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45851,
    "c": 0.14433,
    "h": 287.7
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#5645A2
secondary
#B2BC87
accent
#D058BA
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5645A2

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

Preview Lab → · Contrast checker → · Palette generator →

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