#5638BC#5638BC

#5638BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.195 H 286.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5638BC
RGBrgb(86, 56, 188)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 74%)
CMYKcmyk(54.3%, 70.2%, 0%, 26.3%)
CIE-LABlab(34.88, 46.80, -64.96)
CIE-LCHlch(34.88, 80.06, 305.77°)
OKLaboklab(45.9% 0.0548 -0.1868)
OKLCHoklch(45.9% 0.195 286.4)
XYZxyz(14.3263, 8.4369, 48.4408)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638BC #9EBC38
analogous
#385CBC #5638BC #9838BC
triadic
#5638BC #BC5638 #38BC56
tetradic
#5638BC #BC385C #9EBC38 #38BC98
square
#5638BC #BC385C #9EBC38 #38BC98
split-complementary
#5638BC #BC9838 #5CBC38
monochromatic
#2B1C5E #402A8D #5638BC #7A61D0 #A290DE

Accessibility & contrast

On white

7.81
#5638BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5638BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638BC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638BC#FFFFFF#000000##FFFFFF
##5638BC1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#2B5B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5638bc;
/* rgb */ color: rgb(86, 56, 188);
/* oklch */ color: oklch(45.9% 0.195 286.4);
Tailwind
colors: {
  custom: {
    50: '#9071d1',
    500: '#5638bc',
    950: '#000000',
  },
}
SCSS
$custom: #5638bc;
$custom-light: #9071d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5638bc",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 253.636,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45902,
    "c": 0.19465,
    "h": 286.4
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#5638BC
secondary
#BAC987
accent
#DD4ABC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5638BC

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

Preview Lab → · Contrast checker → · Palette generator →

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