#5638C6#5638C6

#5638C6 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.207 H 284.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5638C6
RGBrgb(86, 56, 198)
HSLhsl(253, 56%, 50%)
HSVhsv(253, 72%, 78%)
CMYKcmyk(56.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(35.76, 49.73, -69.38)
CIE-LCHlch(35.76, 85.36, 305.63°)
OKLaboklab(46.8% 0.0529 -0.1997)
OKLCHoklch(46.8% 0.207 284.8)
XYZxyz(15.4419, 8.8831, 54.3160)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638C6 #A8C638
analogous
#3861C6 #5638C6 #9D38C6
triadic
#5638C6 #C65638 #38C656
tetradic
#5638C6 #C63861 #A8C638 #38C69D
square
#5638C6 #C63861 #A8C638 #38C69D
split-complementary
#5638C6 #C69D38 #61C638
monochromatic
#2D1D67 #412B96 #5638C6 #7E67D4 #A797E2

Accessibility & contrast

On white

7.56
#5638C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5638C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638C6
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638C6#FFFFFF#000000##FFFFFF
##5638C61.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#0050C3
Tritanopia (blue-blind)
#1E5E7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5638c6;
/* rgb */ color: rgb(86, 56, 198);
/* oklch */ color: oklch(46.8% 0.207 284.8);
Tailwind
colors: {
  custom: {
    50: '#9172d8',
    500: '#5638c6',
    950: '#000000',
  },
}
SCSS
$custom: #5638c6;
$custom-light: #9172d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5638c6",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 252.676,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.468,
    "c": 0.20659,
    "h": 284.8
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#5638C6
secondary
#BFCD8D
accent
#DF49BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5638C6

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

Preview Lab → · Contrast checker → · Palette generator →

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