#5639B8#5639B8

#5639B8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.189 H 286.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5639B8
RGBrgb(86, 57, 184)
HSLhsl(254, 53%, 47%)
HSVhsv(254, 69%, 72%)
CMYKcmyk(53.3%, 69%, 0%, 27.8%)
CIE-LABlab(34.73, 45.07, -62.84)
CIE-LCHlch(34.73, 77.33, 305.65°)
OKLaboklab(45.69% 0.0547 -0.1805)
OKLCHoklch(45.69% 0.189 286.8)
XYZxyz(13.9500, 8.3647, 46.2176)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5639B8 #9BB839
analogous
#395BB8 #5639B8 #9639B8
triadic
#5639B8 #B85639 #39B856
tetradic
#5639B8 #B8395B #9BB839 #39B896
square
#5639B8 #B8395B #9BB839 #39B896
split-complementary
#5639B8 #B89639 #5BB839
monochromatic
#2A1C5B #402B89 #5639B8 #7960CE #A18FDC

Accessibility & contrast

On white

7.86
#5639B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5639B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5639B8
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5639B8#FFFFFF#000000##FFFFFF
##5639B81.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#2F5A74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5639b8;
/* rgb */ color: rgb(86, 57, 184);
/* oklch */ color: oklch(45.7% 0.189 286.8);
Tailwind
colors: {
  custom: {
    50: '#8f72ce',
    500: '#5639b8',
    950: '#000000',
  },
}
SCSS
$custom: #5639b8;
$custom-light: #8f72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5639b8",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 253.701,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45692,
    "c": 0.18864,
    "h": 286.8
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#5639B8
secondary
#B8C786
accent
#DC4CBB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5639B8

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

Preview Lab → · Contrast checker → · Palette generator →

#5639B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva