#5639B7#5639B7

#5639B7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.187 H 287.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5639B7
RGBrgb(86, 57, 183)
HSLhsl(254, 53%, 47%)
HSVhsv(254, 69%, 72%)
CMYKcmyk(53%, 68.9%, 0%, 28.2%)
CIE-LABlab(34.65, 44.78, -62.39)
CIE-LCHlch(34.65, 76.79, 305.67°)
OKLaboklab(45.61% 0.0548 -0.1792)
OKLCHoklch(45.61% 0.187 287)
XYZxyz(13.8456, 8.3229, 45.6675)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5639B7 #9AB739
analogous
#395BB7 #5639B7 #9539B7
triadic
#5639B7 #B75639 #39B756
tetradic
#5639B7 #B7395B #9AB739 #39B795
square
#5639B7 #B7395B #9AB739 #39B795
split-complementary
#5639B7 #B79539 #5BB739
monochromatic
#2A1C5A #402A88 #5639B7 #7960CD #A08EDC

Accessibility & contrast

On white

7.88
#5639B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5639B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5639B7
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5639B7#FFFFFF#000000##FFFFFF
##5639B71.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#305973
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5639b7;
/* rgb */ color: rgb(86, 57, 183);
/* oklch */ color: oklch(45.6% 0.187 287.0);
Tailwind
colors: {
  custom: {
    50: '#8f72ce',
    500: '#5639b7',
    950: '#000000',
  },
}
SCSS
$custom: #5639b7;
$custom-light: #8f72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5639b7",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 253.81,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.18742,
    "h": 287
  },
  "luminance": 0.08324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5639B7

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

Preview Lab → · Contrast checker → · Palette generator →

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