#5638DC#5638DC

#5638DC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.232 H 281.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5638DC
RGBrgb(86, 56, 220)
HSLhsl(251, 70%, 54%)
HSVhsv(251, 75%, 86%)
CMYKcmyk(60.9%, 74.5%, 0%, 13.7%)
CIE-LABlab(37.79, 56.14, -78.76)
CIE-LCHlch(37.79, 96.72, 305.48°)
OKLaboklab(48.86% 0.0479 -0.2271)
OKLCHoklch(48.86% 0.232 281.9)
XYZxyz(18.1661, 9.9728, 68.6639)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638DC #BEDC38
analogous
#386CDC #5638DC #A838DC
triadic
#5638DC #DC5638 #38DC56
tetradic
#5638DC #DC386C #BEDC38 #38DCA8
square
#5638DC #DC386C #BEDC38 #38DCA8
split-complementary
#5638DC #DCA838 #6CDC38
monochromatic
#2B1783 #3C20B7 #5638DC #826CE5 #AEA0EE

Accessibility & contrast

On white

7.01
#5638DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5638DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638DC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638DC#FFFFFF#000000##FFFFFF
##5638DC1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE1
Deuteranopia (green-blind)
#0053D9
Tritanopia (blue-blind)
#006788
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5638dc;
/* rgb */ color: rgb(86, 56, 220);
/* oklch */ color: oklch(48.9% 0.232 281.9);
Tailwind
colors: {
  custom: {
    50: '#9572e8',
    500: '#5638dc',
    950: '#000000',
  },
}
SCSS
$custom: #5638dc;
$custom-light: #9572e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5638dc",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 250.976,
    "s": 70.085,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48855,
    "c": 0.23214,
    "h": 281.9
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#5638DC
secondary
#CEDB95
accent
#ED3BCC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5638DC

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

Preview Lab → · Contrast checker → · Palette generator →

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