#5639B2#5639B2

#5639B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.181 H 287.9°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5639B2
RGBrgb(86, 57, 178)
HSLhsl(254, 51%, 46%)
HSVhsv(254, 68%, 70%)
CMYKcmyk(51.7%, 68%, 0%, 30.2%)
CIE-LABlab(34.23, 43.30, -60.11)
CIE-LCHlch(34.23, 74.08, 305.77°)
OKLaboklab(45.18% 0.0556 -0.1725)
OKLCHoklch(45.18% 0.181 287.9)
XYZxyz(13.3344, 8.1184, 42.9752)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5639B2 #95B239
analogous
#3958B2 #5639B2 #9239B2
triadic
#5639B2 #B25639 #39B256
tetradic
#5639B2 #B23958 #95B239 #39B292
square
#5639B2 #B23958 #95B239 #39B292
split-complementary
#5639B2 #B29239 #58B239
monochromatic
#291B55 #402A84 #5639B2 #775DCB #9E8BDA

Accessibility & contrast

On white

8.00
#5639B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5639B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5639B2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5639B2#FFFFFF#000000##FFFFFF
##5639B21.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#345871
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5639b2;
/* rgb */ color: rgb(86, 57, 178);
/* oklch */ color: oklch(45.2% 0.181 287.9);
Tailwind
colors: {
  custom: {
    50: '#8e71ca',
    500: '#5639b2',
    950: '#000000',
  },
}
SCSS
$custom: #5639b2;
$custom-light: #8e71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5639b2",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 254.38,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45176,
    "c": 0.18126,
    "h": 287.9
  },
  "luminance": 0.08119
}

Semantic roles & 50–950 ramp

primary
#5639B2
secondary
#B5C482
accent
#DB4DB9
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5639B2

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

Preview Lab → · Contrast checker → · Palette generator →

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