#5638BD#5638BD

#5638BD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.196 H 286.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5638BD
RGBrgb(86, 56, 189)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 74%)
CMYKcmyk(54.5%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.96, 47.09, -65.41)
CIE-LCHlch(34.96, 80.60, 305.75°)
OKLaboklab(45.99% 0.0546 -0.1881)
OKLCHoklch(45.99% 0.196 286.2)
XYZxyz(14.4345, 8.4801, 49.0105)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638BD #9FBD38
analogous
#385CBD #5638BD #9838BD
triadic
#5638BD #BD5638 #38BD56
tetradic
#5638BD #BD385C #9FBD38 #38BD98
square
#5638BD #BD385C #9FBD38 #38BD98
split-complementary
#5638BD #BD9838 #5CBD38
monochromatic
#2B1C5F #412A8E #5638BD #7B62D0 #A291DE

Accessibility & contrast

On white

7.79
#5638BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5638BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638BD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638BD#FFFFFF#000000##FFFFFF
##5638BD1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#2A5B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5638bd;
/* rgb */ color: rgb(86, 56, 189);
/* oklch */ color: oklch(46.0% 0.196 286.2);
Tailwind
colors: {
  custom: {
    50: '#9071d2',
    500: '#5638bd',
    950: '#000000',
  },
}
SCSS
$custom: #5638bd;
$custom-light: #9071d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5638bd",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 253.534,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.19586,
    "h": 286.2
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5638BD

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

Preview Lab → · Contrast checker → · Palette generator →

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