#5638BB#5638BB

#5638BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.193 H 286.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5638BB
RGBrgb(86, 56, 187)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 73%)
CMYKcmyk(54%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.79, 46.50, -64.51)
CIE-LCHlch(34.79, 79.53, 305.79°)
OKLaboklab(45.81% 0.055 -0.1854)
OKLCHoklch(45.81% 0.193 286.5)
XYZxyz(14.2189, 8.3939, 47.8750)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638BB #9DBB38
analogous
#385CBB #5638BB #9738BB
triadic
#5638BB #BB5638 #38BB56
tetradic
#5638BB #BB385C #9DBB38 #38BB97
square
#5638BB #BB385C #9DBB38 #38BB97
split-complementary
#5638BB #BB9738 #5CBB38
monochromatic
#2B1C5D #402A8C #5638BB #7A61D0 #A290DE

Accessibility & contrast

On white

7.84
#5638BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5638BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638BB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638BB#FFFFFF#000000##FFFFFF
##5638BB1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#2C5A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5638bb;
/* rgb */ color: rgb(86, 56, 187);
/* oklch */ color: oklch(45.8% 0.193 286.5);
Tailwind
colors: {
  custom: {
    50: '#9071d1',
    500: '#5638bb',
    950: '#000000',
  },
}
SCSS
$custom: #5638bb;
$custom-light: #9071d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5638bb",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 253.74,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45814,
    "c": 0.19344,
    "h": 286.5
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#5638BB
secondary
#B9C886
accent
#DD4BBC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5638BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5638BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva