#5638D5#5638D5

#5638D5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.224 H 282.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5638D5
RGBrgb(86, 56, 213)
HSLhsl(251, 65%, 53%)
HSVhsv(251, 74%, 84%)
CMYKcmyk(59.6%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.13, 54.11, -75.82)
CIE-LCHlch(37.13, 93.15, 305.51°)
OKLaboklab(48.19% 0.0495 -0.2186)
OKLCHoklch(48.19% 0.224 282.8)
XYZxyz(17.2584, 9.6097, 63.8833)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638D5 #B7D538
analogous
#3868D5 #5638D5 #A438D5
triadic
#5638D5 #D55638 #38D556
tetradic
#5638D5 #D53868 #B7D538 #38D5A4
square
#5638D5 #D53868 #B7D538 #38D5A4
split-complementary
#5638D5 #D5A438 #68D538
monochromatic
#2C1A79 #3E24AC #5638D5 #816BE0 #AC9DEA

Accessibility & contrast

On white

7.19
#5638D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5638D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638D5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638D5#FFFFFF#000000##FFFFFF
##5638D51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDA
Deuteranopia (green-blind)
#0052D2
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5638d5;
/* rgb */ color: rgb(86, 56, 213);
/* oklch */ color: oklch(48.2% 0.224 282.8);
Tailwind
colors: {
  custom: {
    50: '#9472e3',
    500: '#5638d5',
    950: '#000000',
  },
}
SCSS
$custom: #5638d5;
$custom-light: #9472e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5638d5",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 251.465,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4819,
    "c": 0.22411,
    "h": 282.8
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#5638D5
secondary
#C9D692
accent
#E840C8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5638D5

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

Preview Lab → · Contrast checker → · Palette generator →

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